From 6e503b02b6feb991e2f0cb7703009410b4106a6b Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Wed, 3 Jul 2024 22:28:13 +0200 Subject: [PATCH] Tests: Disable matplotlib tests for lab 4 The matplotlib test loads all figures at once, but for lab they have to be loaded and tested when in view. We disable this test for lab 4 and put this as task for later. See issue #52. --- tests/test_widgets.py | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_widgets.py b/tests/test_widgets.py index 52f5b32..c195b8e 100644 --- a/tests/test_widgets.py +++ b/tests/test_widgets.py @@ -576,6 +576,7 @@ def test_widget_answer(self, selenium_driver): ("tests/notebooks/widget_cue_figure-inline.ipynb", "inline"), ], ) +@pytest.mark.matplotlib def test_widget_figure(selenium_driver, nb_filename, mpl_backend): """ We separate the widget figure tests for different backends to different files diff --git a/tox.ini b/tox.ini index a705a01..0257a7b 100644 --- a/tox.ini +++ b/tox.ini @@ -73,7 +73,7 @@ deps = commands = # converts the python files to ipython notebooks jupytext tests/notebooks/*.py --to ipynb - pytest {posargs:-v} --driver Firefox + pytest {posargs:-v} -m "not matplotlib" --driver Firefox [testenv:coverage] # We do coverage in a separate environment that skips the selenium tests but