diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-02-19 14:42:33 +0100 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-02-20 18:12:04 +0100 |
commit | 1ac142fa1e785aade8272759d32561fc716e8740 (patch) | |
tree | 125fdfb17a10c19412f0921d2bec3951c293a7d4 /utils/setup.cfg | |
parent | ed1c12c783e74f0226f33ba0a6f20cc6e5b5f396 (diff) | |
download | openshift-1ac142fa1e785aade8272759d32561fc716e8740.tar.gz openshift-1ac142fa1e785aade8272759d32561fc716e8740.tar.bz2 openshift-1ac142fa1e785aade8272759d32561fc716e8740.tar.xz openshift-1ac142fa1e785aade8272759d32561fc716e8740.zip |
Replace nose with pytest (utils)
Diffstat (limited to 'utils/setup.cfg')
-rw-r--r-- | utils/setup.cfg | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/utils/setup.cfg b/utils/setup.cfg index 862dffd7b..d730cd3b4 100644 --- a/utils/setup.cfg +++ b/utils/setup.cfg @@ -4,15 +4,8 @@ # will need to generate wheels for each Python version that you support. universal=1 -[nosetests] -verbosity=2 -with-coverage=1 -cover-html=1 -cover-inclusive=1 -cover-min-percentage=70 -cover-erase=1 -detailed-errors=1 -cover-branches=1 +[aliases] +test=pytest [flake8] max-line-length=120 @@ -21,3 +14,19 @@ ignore=E501 [lint] lint_disable=fixme,locally-disabled,file-ignored,duplicate-code + +[tool:pytest] +testpaths = test +norecursedirs = + .* + __pycache__ +python_files = + # TODO(rhcarvalho): rename test files to follow a single pattern. "test*.py" + # is Python unittest's default, while pytest discovers both "test_*.py" and + # "*_test.py" by default. + test_*.py + *_tests.py +addopts = + --cov=. + --cov-report=term + --cov-report=html |