fix(tests): disable warnings for notebook tests

- a warning in a package unrelated to the project made pytest fail
- run notebook tests without warnings as sources are already tested with
warnings treated as errors
This commit is contained in:
Arthur Meyre
2021-09-27 09:53:00 +02:00
parent 134f5f452c
commit 2b5f152f23

View File

@@ -178,8 +178,10 @@ finalize_nb:
poetry run python ./script/nbmake_utils/notebook_finalize.py $(NOTEBOOKS_DIR)
.PHONY: finalize_nb
# A warning in a package unrelated to the project made pytest fail with notebooks
# Run notebook tests without warnings as sources are already tested with warnings treated as errors
pytest_nb:
poetry run pytest --nbmake $(NOTEBOOKS_DIR)/*.ipynb
poetry run pytest -Wignore --nbmake $(NOTEBOOKS_DIR)/*.ipynb
.PHONY: pytest_nb
benchmark: