From 2e65466e8e8b3b1731c2498fc95153a1ae45fb44 Mon Sep 17 00:00:00 2001 From: pgajdos Date: Mon, 19 Oct 2020 15:12:55 +0200 Subject: [PATCH] add pytest.ini pytest-timer doesn't seem to be working require pytest-cov for py26 --- pytest.ini | 4 ++++ tox.ini | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..e7f77388 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,4 @@ +[pytest] +python_files = tests_*.py +testpaths = tqdm +addopts = -v diff --git a/tox.ini b/tox.ini index 5fa341af..fd3edb87 100644 --- a/tox.ini +++ b/tox.ini @@ -26,7 +26,6 @@ allowlist_externals = [extra] deps = {[coverage]deps} - pytest-timer codecov commands = 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} [testenv:py26] -# no codecov and timer for py26 deps = pytest + pytest-cov coverage coveralls==1.2.0 codecov @@ -80,7 +79,6 @@ deps = {[extra]deps} [testenv:tf-no-keras] deps = {[extra]deps} - pytest-timer tensorflow commands = pytest tqdm/tests/tests_keras.py -v @@ -88,7 +86,6 @@ commands = [testenv:perf] deps = pytest - pytest-timer commands = pytest tqdm/tests/tests_perf.py -v