diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-05-14 23:11:24 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-05-14 23:11:24 -0700 |
commit | 3346a8d61c40e3f18b26c13df9dfafc2a0ad8e80 (patch) | |
tree | 0047296f1933b86fb5e8c82ffeafdbee140a81ae | |
parent | c4852afdec87712e09b9cdba5b5db7e1ad1a0701 (diff) | |
download | fatcat-scholar-3346a8d61c40e3f18b26c13df9dfafc2a0ad8e80.tar.gz fatcat-scholar-3346a8d61c40e3f18b26c13df9dfafc2a0ad8e80.zip |
working pytest settings
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | pytest.ini | 13 |
2 files changed, 14 insertions, 1 deletions
@@ -11,7 +11,7 @@ help: ## Print info about all commands .PHONY: test test: ## Run all tests and lints pipenv run pytest - pipenv run mypy *.py chocula/*.py chocula/*/*.py --ignore-missing-imports + pipenv run mypy fatcat_scholar/*.py tests/ --ignore-missing-imports .PHONY: dev dev: ## Run web service locally, with reloading diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..0d81a51 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,13 @@ +[pytest] + +ignore = setup.py + +# search for 'test_*' functions in all python files, not just under tests +python_files = test_*.py tests/*.py fatcat_scholar/*.py + +# TODO: +#addopts = --pylint --pylint-rcfile=.pylintrc --pylint-error-types=EF --pylint-jobs=4 + +filterwarnings = + +log_level = INFO |