aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-01-03 14:38:29 -0800
committerBryan Newbold <bnewbold@robocracy.org>2020-01-03 14:38:31 -0800
commitebf2df2c780f8c41da5407f3754de6c1040bea27 (patch)
tree931f6135887b8c41e93805cf8ae0032a9c50c19e /python
parent0ca814f274706797a66499267dc7d6fd844e6859 (diff)
downloadfatcat-ebf2df2c780f8c41da5407f3754de6c1040bea27.tar.gz
fatcat-ebf2df2c780f8c41da5407f3754de6c1040bea27.zip
pytest: explicitly indicate all in-scope test files
The purpose of this change is to test errors when pytest tries to recursively update assertion statements in all dependent packages. The reason pytest does this is to add pretty printing, which is nice, but probably shouldn't be done in all dependency libraries. This fixes test problems with both CSL (citeproc_styles) and dateparser (when actually imported in code, which currently on master does not happen).
Diffstat (limited to 'python')
-rw-r--r--python/pytest.ini4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/pytest.ini b/python/pytest.ini
index 444333ea..069102b1 100644
--- a/python/pytest.ini
+++ b/python/pytest.ini
@@ -2,10 +2,8 @@
ignore = setup.py
-python_paths = .
-
# search for 'test_*' functions in all python files, not just under tests
-python_files = *.py
+python_files = test_*.py tests/*.py fatcat_tools/*.py fatcat_tools/*/*.py fatcat_web/*.py
addopts = --pylint --pylint-rcfile=.pylintrc --pylint-error-types=EF --pylint-jobs=4