PyTest - Fixtures
Which of the following is the correct way to use a fixture named
db_connection in a pytest test function?db_connection in a pytest test function?db_connection as a parameter. def test_example(): db_connection() tries to call it inside the test, which is incorrect. def test_example(): fixture(db_connection) uses a non-existent fixture() call. def test_example(db_connection()): uses parentheses in the parameter list, which is invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions