Closed smarie closed 5 years ago
Note that this is also the case for fixtures that are not parametrized:
@pytest.fixture
def dummy():
""" This fixture has no parameter """
return "hello!"
def test_foo2(dummy):
pass
def test_get_all_pytest_fixture_names_no_param(request):
"""Tests that get_all_pytest_fixture_names works"""
fixture_names = get_all_pytest_fixture_names(request.session, filter=test_foo2)
assert fixture_names == ['dummy'] # fails