add pytest.ini

pytest-timer doesn't seem to be working

require pytest-cov for py26
This commit is contained in:
pgajdos 2020-10-19 15:12:55 +02:00 committed by Casper da Costa-Luis
parent 7f2545ef00
commit 2e65466e8e
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
2 changed files with 5 additions and 4 deletions

4
pytest.ini Normal file
View File

@ -0,0 +1,4 @@
[pytest]
python_files = tests_*.py
testpaths = tqdm
addopts = -v

View File

@ -26,7 +26,6 @@ allowlist_externals =
[extra] [extra]
deps = deps =
{[coverage]deps} {[coverage]deps}
pytest-timer
codecov codecov
commands = commands =
pytest --cov=tqdm -k "not tests_perf" -v tqdm/ pytest --cov=tqdm -k "not tests_perf" -v tqdm/
@ -52,9 +51,9 @@ allowlist_externals = {[extra]allowlist_externals}
# no cython/numpy/pandas for py{py,py3,26,33,34} # no cython/numpy/pandas for py{py,py3,26,33,34}
[testenv:py26] [testenv:py26]
# no codecov and timer for py26
deps = deps =
pytest pytest
pytest-cov
coverage coverage
coveralls==1.2.0 coveralls==1.2.0
codecov codecov
@ -80,7 +79,6 @@ deps = {[extra]deps}
[testenv:tf-no-keras] [testenv:tf-no-keras]
deps = deps =
{[extra]deps} {[extra]deps}
pytest-timer
tensorflow tensorflow
commands = commands =
pytest tqdm/tests/tests_keras.py -v pytest tqdm/tests/tests_keras.py -v
@ -88,7 +86,6 @@ commands =
[testenv:perf] [testenv:perf]
deps = deps =
pytest pytest
pytest-timer
commands = commands =
pytest tqdm/tests/tests_perf.py -v pytest tqdm/tests/tests_perf.py -v