Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
How do you write tests with pytest? Tell me about fixtures and how to replace an external dependency in a test.JuniorHow would you use pytest to test a function that calls an external payment API and writes the result to a database?Mid-levelYou've joined a project as tech lead: three hundred thousand lines of Python, the tests take forty minutes, and half the team doesn't run them locally. How would you rebuild the testing strategy?Senior