Skip to content

Commit

Permalink
tests: fix pytest-asyncio usage
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Feb 27, 2022
1 parent 6426c55 commit 6ba43f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ markers=
slow
python_files=tests_*.py tests_*.ipynb
testpaths=tests
addopts=-v --tb=short -rxs -W=error --durations=0 --durations-min=0.1
addopts=-v --tb=short -rxs -W=error --durations=0 --durations-min=0.1 --asyncio-mode=strict
[regex1]
regex: (?<= )[\s\d.]+(it/s|s/it)
replace: ??.??it/s
Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ deps=
py3{6,7,8,9,10}: rich
tf: tensorflow!=2.5.0
commands=
py3{6,7,8,9,10}: pytest --cov=tqdm --cov-report= tests_notebook.ipynb --nbval --nbval-current-env -W=ignore --nbval-sanitize-with=setup.cfg
pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not perf"
py36: pytest --cov=tqdm --cov-report= tests_notebook.ipynb --nbval --nbval-current-env -W=ignore --nbval-sanitize-with=setup.cfg -o addopts= -v --tb=short -rxs -W=error --durations=0 --durations-min=0.1
py3{7,8,9,10}: pytest --cov=tqdm --cov-report= tests_notebook.ipynb --nbval --nbval-current-env -W=ignore --nbval-sanitize-with=setup.cfg
py3{0,1,2,3,4,5,6}: pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not perf" -o addopts= -v --tb=short -rxs -W=error --durations=0 --durations-min=0.1
py3{7,8,9,10}: pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not perf"
{[core]commands}
allowlist_externals=codacy

Expand All @@ -72,6 +74,7 @@ deps={[core]deps}
deps=
pytest
pytest-timeout
pytest-asyncio
commands=pytest -k perf

[testenv:setup.py]
Expand Down

0 comments on commit 6ba43f2

Please sign in to comment.