From 2b5f152f23bde775a41ae4b2fc3203daf2a308e6 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Mon, 27 Sep 2021 09:53:00 +0200 Subject: [PATCH] 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 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index db4c2591d..39c416658 100644 --- a/Makefile +++ b/Makefile @@ -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: