Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent pytest from collecting tests on testing.TestClient (#2148)
* fix: prevent pytest from collecting tests on testing.TestClient * chore: remove extraneous whitespace * docs(towncrier): add a newsfragment * fix(testing): allow collecting tests from TestCases (duh!) * chore: prefix comments --------- Co-authored-by: Aryan Iyappan <69184573+aryan340@users.noreply.github.com> Co-authored-by: Vytautas Liuolia <vytautas.liuolia@gmail.com>
- Loading branch information
1 parent
200a853
commit b16b6c3
Showing
3 changed files
with
10 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Previously, importing :class:`~falcon.testing.TestCase` as a top-level | ||
attribute in a test module could make ``pytest`` erroneously attempt to collect | ||
its methods as test cases. This has now been prevented by adding a ``__test__`` | ||
attribute (set to ``False``) to the :class:`~falcon.testing.TestCase` class. |
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
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