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)
- What production risk should you worry about most if parameterized tests is handled lazily?Multiple choiceMedium
- If tmp_path and file tests fails in production, what handling philosophy is strongest?Multiple choiceHard
- When is monkeypatching and mocks being used in the wrong way?Multiple choiceMedium
- Which explanation would best help the team align on parameterized tests?Multiple choiceMedium
- Which option describes the most likely pitfall around monkeypatching and mocks?Multiple choiceMedium
- If you wrote a test around parameterized tests, what should the test prove first?Multiple choiceMedium
- Which explanation would best help the team align on monkeypatching and mocks?Multiple choiceMedium
- Which explanation would best help the team align on tmp_path and file tests?Multiple choiceHard
- If reliability stories fails in production, what handling philosophy is strongest?Multiple choiceHard
- Which judgment is strongest when choosing a data shape for fixtures?Multiple choiceMedium
- What assumption should be made explicit when working with tmp_path and file tests?Multiple choiceHard
- Which naming or modeling choice is strongest for reliability stories?Multiple choiceHard
- A bug appears around parameterized tests. What is the strongest first debugging move?Multiple choiceMedium
- Which move is the best default when tmp_path and file tests becomes part of this workflow?Multiple choiceHard
- Which explanation would sound strongest in an interview when discussing fixtures?Multiple choiceMedium
- Which move is the best default when parameterized tests becomes part of this workflow?Multiple choiceMedium
- If you wrote a test around fixtures, what should the test prove first?Multiple choiceMedium
- Which explanation would sound strongest in an interview when discussing monkeypatching and mocks?Multiple choiceMedium
- What assumption should be made explicit when working with reliability stories?Multiple choiceHard
- Which judgment is strongest when choosing a data shape for monkeypatching and mocks?Multiple choiceMedium
- A senior interviewer asks for one tradeoff behind tmp_path and file tests. What is the strongest follow-up?Multiple choiceHard
- Which option is the safer default when shipping code around parameterized tests?Multiple choiceHard
- You cannot rewrite everything today. What is the best incremental improvement around reliability stories?Multiple choiceHard
- Which option describes the most likely pitfall around parameterized tests?Multiple choiceMedium
- A teammate submits shaky tmp_path and file tests code. Which review comment is the strongest?Multiple choiceHard