From a2fbaad7c25371c0d26ce3a34c340e2f30412b6f 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 343b1b2..d4c2caa 100644 --- a/tests/test_widgets.py +++ b/tests/test_widgets.py @@ -589,6 +589,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