Skip to content

Commit

Permalink
set plots to run interactive mode (no blocking) (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue authored Aug 1, 2022
1 parent fe73be1 commit fce12b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Pytest configuration file."""

import matplotlib.pyplot as plt

def pytest_configure(config):
"""Set configurations to be run before all testing."""

# Turn on interactive mode for matplotlib
# In practice, this defaults `block=False` for plt.show()
# This means that plots won't show and wait for input before proceeding
# To run tests while showing plots, comment this out, or replace with `plt.ioff`
plt.ion()

0 comments on commit fce12b9

Please sign in to comment.