diff --git a/postreise/plot/tests/conftest.py b/postreise/plot/tests/conftest.py new file mode 100644 index 00000000..0cda5181 --- /dev/null +++ b/postreise/plot/tests/conftest.py @@ -0,0 +1,8 @@ +import matplotlib.pyplot as plt +import pytest + + +@pytest.fixture(autouse=True) +def plt_close(): + yield + plt.close("all") diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index b0189af7..00000000 --- a/pytest.ini +++ /dev/null @@ -1,2 +0,0 @@ -[pytest] -addopts = --cov=postreise diff --git a/tox.ini b/tox.ini index 9fb5aae4..4cdcb8fa 100644 --- a/tox.ini +++ b/tox.ini @@ -24,3 +24,6 @@ ignore = E501,W503,E203,E741 [isort] profile = black + +[pytest] +addopts = --cov=postreise