Skip to content
Sharp

Testing interview questions

API Contract Testing, Arrange Act Assert, Basic pytest Assertions, Boundary And Failure Tests, Fixtures, Monkeypatching and Mocks

225 questions with answers and explanations · 207 flashcards

Questions (page 5 of 5)

  1. What production risk should you worry about most if parameterized tests is handled lazily?Multiple choiceMedium
  2. If tmp_path and file tests fails in production, what handling philosophy is strongest?Multiple choiceHard
  3. When is monkeypatching and mocks being used in the wrong way?Multiple choiceMedium
  4. Which explanation would best help the team align on parameterized tests?Multiple choiceMedium
  5. Which option describes the most likely pitfall around monkeypatching and mocks?Multiple choiceMedium
  6. If you wrote a test around parameterized tests, what should the test prove first?Multiple choiceMedium
  7. Which explanation would best help the team align on monkeypatching and mocks?Multiple choiceMedium
  8. Which explanation would best help the team align on tmp_path and file tests?Multiple choiceHard
  9. If reliability stories fails in production, what handling philosophy is strongest?Multiple choiceHard
  10. Which judgment is strongest when choosing a data shape for fixtures?Multiple choiceMedium
  11. What assumption should be made explicit when working with tmp_path and file tests?Multiple choiceHard
  12. Which naming or modeling choice is strongest for reliability stories?Multiple choiceHard
  13. A bug appears around parameterized tests. What is the strongest first debugging move?Multiple choiceMedium
  14. Which move is the best default when tmp_path and file tests becomes part of this workflow?Multiple choiceHard
  15. Which explanation would sound strongest in an interview when discussing fixtures?Multiple choiceMedium
  16. Which move is the best default when parameterized tests becomes part of this workflow?Multiple choiceMedium
  17. If you wrote a test around fixtures, what should the test prove first?Multiple choiceMedium
  18. Which explanation would sound strongest in an interview when discussing monkeypatching and mocks?Multiple choiceMedium
  19. What assumption should be made explicit when working with reliability stories?Multiple choiceHard
  20. Which judgment is strongest when choosing a data shape for monkeypatching and mocks?Multiple choiceMedium
  21. A senior interviewer asks for one tradeoff behind tmp_path and file tests. What is the strongest follow-up?Multiple choiceHard
  22. Which option is the safer default when shipping code around parameterized tests?Multiple choiceHard
  23. You cannot rewrite everything today. What is the best incremental improvement around reliability stories?Multiple choiceHard
  24. Which option describes the most likely pitfall around parameterized tests?Multiple choiceMedium
  25. A teammate submits shaky tmp_path and file tests code. Which review comment is the strongest?Multiple choiceHard