Skip to content

Commit 96de374

Browse files
Used testpaths for pytest configuration. (#320)
Specifying the `tests` dir in testpaths allows overriding at the command line. Previously, as part of addopts it couldn't be removed. For example: pytest tests/test_pubsub.py ... will now pick up just that once file, rather than the whole `tests` folder, and that file again.
1 parent d946ce2 commit 96de374

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tool:pytest]
2-
addopts = -p no:django tests/
2+
addopts = -p no:django
3+
testpaths = tests
34

45
[flake8]
56
exclude = venv/*,tox/*,specs/*,build/*

0 commit comments

Comments
 (0)