Skip to content

Commit

Permalink
add fixture to disable poping plot windows in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey committed Apr 5, 2024
1 parent 92daa8b commit 0b3eb99
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""conftest.py contains fixtures that are automatically imported by pytest."""
import pytest
import matplotlib


@pytest.fixture(autouse=True, scope='session')
def set_matplotlib_backend():
matplotlib.use('Agg') # to avoid opening windows during testing

0 comments on commit 0b3eb99

Please sign in to comment.