C.W.K.
Stream
Quiz · 3 questions

🧰 Tooling — Tests, Debugger, Profiler, Linter

pytest / mock / pdb / cProfile / ruff / mypy / pre-commit

Level 0Curious
0 XP0/93 lessons0/23 achievements
0/100 XP to next level100 XP to go0% complete

Quiz

01Why is pytest preferred over unittest?
Hint
Compare the boilerplate of one test in each.
02When you do from requests import get in my_module, what does patch("requests.get") accomplish in tests for my_module?
Hint
What does from x import y actually do at the namespace level?
03Why profile before optimizing?
Hint
What's the alternative — and why is it usually wrong?
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.