chore: Add support for confftest for parameterized tests to have no values

ref: #789
This commit is contained in:
2025-06-06 05:45:10 +09:30
parent 1d80cdd5c3
commit 3d9cde3b25
3 changed files with 10 additions and 4 deletions

View File

@ -270,6 +270,14 @@ def pytest_generate_tests(metafunc):
ids = ids,
)
else:
pytest.mark.xfail(
reason = 'No Parameters for parameterized test'
)(
getattr(metafunc.cls, metafunc.definition.name)
)
@pytest.fixture( scope = 'class')