PyTest - Parametrize
Which of the following is a correct way to parametrize a test using an indirect fixture named
db?db?indirect=True to tell pytest to treat the parameter as a fixture input.indirect=True. @pytest.mark.parametrize('db', [1, 2]) lacks indirect, so parameters go directly to the test. @pytest.mark.parametrize('db', [1, 2], indirect=False) uses indirect=False, which disables indirect behavior. @pytest.mark.parametrize('db', [1, 2], indirect='yes') uses an invalid string value.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions