From b7675e276520c7ce595b9b5dbb10c02a42f5a9b1 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 3 Jan 2020 14:38:29 -0800 Subject: 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). --- python/pytest.ini | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3