tests: fix nbval DeprecationWarning

This commit is contained in:
Casper da Costa-Luis 2024-10-28 02:57:48 +00:00
parent 47b9227f45
commit 0a439b5289
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
2 changed files with 3 additions and 3 deletions

View File

@ -61,11 +61,11 @@ testsetup:
@make help @make help
testnb: testnb:
pytest tests_notebook.ipynb --cov=tqdm.notebook --cov-report=term -W=ignore --nbval --current-env --sanitize-with=.meta/nbval.ini pytest tests_notebook.ipynb --cov=tqdm.notebook --cov-report=term -W=ignore --nbval --nbval-current-env --nbval-sanitize-with=.meta/nbval.ini
testcoverage: testcoverage:
@make coverclean @make coverclean
pytest tests_notebook.ipynb --cov=tqdm --cov-report= -W=ignore --nbval --current-env --sanitize-with=.meta/nbval.ini pytest tests_notebook.ipynb --cov=tqdm --cov-report= -W=ignore --nbval --nbval-current-env --nbval-sanitize-with=.meta/nbval.ini
pytest -k "not perf" --cov=tqdm --cov-report=xml --cov-report=term --cov-append --cov-fail-under=80 pytest -k "not perf" --cov=tqdm --cov-report=xml --cov-report=term --cov-append --cov-fail-under=80
testperf: testperf:

View File

@ -49,7 +49,7 @@ deps=
tf: tensorflow!=2.5.0 tf: tensorflow!=2.5.0
keras: keras keras: keras
commands= commands=
pytest --cov=tqdm --cov-report= -W=ignore tests_notebook.ipynb --nbval --current-env --sanitize-with=.meta/nbval.ini pytest --cov=tqdm --cov-report= -W=ignore tests_notebook.ipynb --nbval --nbval-current-env --nbval-sanitize-with=.meta/nbval.ini
pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not perf" pytest --cov=tqdm --cov-report=xml --cov-report=term --cov-append -k "not perf"
{[core]commands} {[core]commands}
allowlist_externals=codacy allowlist_externals=codacy