Merge pull request #7253 from bluetech/fixture-special-case

fixtures: remove special cases when deciding when pytest.fixture() is a direct decoration
This commit is contained in:
Ran Benita
2020-06-05 11:33:43 +03:00
committed by GitHub
2 changed files with 11 additions and 6 deletions
+3
View File
@@ -0,0 +1,3 @@
When using ``pytest.fixture`` on a function directly, as in ``pytest.fixture(func)``,
if the ``autouse`` or ``params`` arguments are also passed, the function is no longer
ignored, but is marked as a fixture.