I have a test which currently runs with a single fixture like this:
@pytest.fixture() def foo(): return 'foo' def test_something(foo): # assert something about foo Now I am creating a slightly different fixture, say
@pytest.fixture def bar(): return 'bar' I need to repeat the exact same test against this second fixture. How can I do that without just copy/pasting the test and changing the parameter name?