Skip to content

Commit

Permalink
test: autouse fixture to close test plots
Browse files Browse the repository at this point in the history
  • Loading branch information
jenhagg authored and rouille committed Sep 14, 2022
1 parent 88adbe8 commit eea8c20
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions postreise/plot/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import matplotlib.pyplot as plt
import pytest


@pytest.fixture(autouse=True)
def plt_close():
yield
plt.close("all")
2 changes: 0 additions & 2 deletions pytest.ini

This file was deleted.

3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ ignore = E501,W503,E203,E741

[isort]
profile = black

[pytest]
addopts = --cov=postreise

0 comments on commit eea8c20

Please sign in to comment.