Fixtures and parametrize in an API suite
QuizMediumPython only
Which statements about a pytest API suite are true? Choose all that apply.
- A fixture with scope="session" in conftest.py can log in once and share the client with every test
- @pytest.mark.parametrize("email", ["", "a@", "plainaddress"]) runs the test once per value, each reported separately
- A fixture can clean up after the test by putting code after yield
- Tests must call fixtures directly, like normal functions
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.