-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: ignore the warnings about
becoming a fixture
via config.
- Loading branch information
1 parent
1b9872a
commit 95203cb
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
Issues a warning when a function is not collected as a test case just because it uses :py:func:`@pytest.fixture` | ||
Issues a warning when a function is not collected as a test case just because it uses :py:func:`@pytest.fixture`. | ||
This helps beginners distinguish fixtures from tests; experienced users can ignore the warning via config. | ||
|
||
.. code-block:: ini | ||
[pytest] | ||
filterwarnings = | ||
ignore:.*becomes a fixture.*:pytest.PytestCollectionWarning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters