Commit 247ec1c
authored
Fix this warning seen in the pytest output:
```
pytest_django/runner.py:6
/.../pytest-django/pytest_django/runner.py:6: PytestCollectionWarning: cannot collect test class 'TestRunner' because it has a __init__ constructor (from: tests/test_runner.py)
class TestRunner:
```
The fix uses [`__test__ = False`](https://docs.pytest.org/en/stable/example/pythoncollection.html#:~:text=boolean%20%5F%5Ftest%5F%5F%20attribute) to flag the class as non-test.
1 parent de19d76 commit 247ec1c
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
0 commit comments