All quizzes
Free quiz · 43 questions in the bank

pytest quiz

Test your pytest knowledge with a free interactive quiz — 43 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

How do you run a single specific test function in a file?

In this round
  1. How do you run a single specific test function in a file?
  2. What does the `-v` flag do?
  3. What does `@pytest.mark.xfail` mean?
  4. How do you provide teardown logic in a fixture?
  5. How do you skip a test unconditionally?
  6. How do you run only tests whose name contains a substring?
  7. How do you write a basic test?
  8. What flag re-runs only the tests that failed last time?
  9. What is pytest?
  10. How do you group tests inside a class?
  11. How do you get a temporary directory unique to a test?
  12. What is a pytest fixture?
Gaps to close?
Read the curated pytest notes — core concepts, patterns, interview prep.
pytest notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka