aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-01-03 14:38:29 -0800
committerMartin Czygan <martin.czygan@gmail.com>2020-01-04 01:21:58 +0100
commitb7675e276520c7ce595b9b5dbb10c02a42f5a9b1 (patch)
tree4f8a94103fa423ab1c9978fe4178b92a93bfed6c /python
parente6feb6fd6d48f7b179389e79dfeb994d1b0f797b (diff)
downloadfatcat-b7675e276520c7ce595b9b5dbb10c02a42f5a9b1.tar.gz
fatcat-b7675e276520c7ce595b9b5dbb10c02a42f5a9b1.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