Skip to content

Commit 6e503b0

Browse files
committed
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.
1 parent 9e60b7d commit 6e503b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/test_widgets.py

+1
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ def test_widget_answer(self, selenium_driver):
576576
("tests/notebooks/widget_cue_figure-inline.ipynb", "inline"),
577577
],
578578
)
579+
@pytest.mark.matplotlib
579580
def test_widget_figure(selenium_driver, nb_filename, mpl_backend):
580581
"""
581582
We separate the widget figure tests for different backends to different files

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ deps =
7373
commands =
7474
# converts the python files to ipython notebooks
7575
jupytext tests/notebooks/*.py --to ipynb
76-
pytest {posargs:-v} --driver Firefox
76+
pytest {posargs:-v} -m "not matplotlib" --driver Firefox
7777

7878
[testenv:coverage]
7979
# We do coverage in a separate environment that skips the selenium tests but

0 commit comments

Comments
 (0)