Skip to content

Commit 6d7ae73

Browse files
committed
Expaned unittest
1 parent 53edcc1 commit 6d7ae73

File tree

6 files changed

+0
-24
lines changed

6 files changed

+0
-24
lines changed

tests/baseline/test_colorbar.png

-228 KB
Loading

tests/baseline/test_inbounds_data.png

-287 KB
Loading
-356 KB
Loading
11.9 KB
Loading

tests/test_1d.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
from matplotlib.testing import setup
33

44

5-
@pytest.fixture()
6-
def setup_mpl():
7-
setup()
8-
plt.clf()
9-
10-
115
@pytest.mark.mpl_image_compare
126
def test_standardized_inputs_1d():
137
N = 5
@@ -37,10 +31,3 @@ def test_standardized_inputs_1d():
3731
ax.scatter(y + 2, marker="s", markersize=5**2)
3832
fig.format(xlabel="xlabel", ylabel="ylabel")
3933
return fig
40-
41-
42-
if __name__ == "__main__":
43-
for func in [
44-
test_standardized_inputs_1d,
45-
]:
46-
func().savefig(f"./tests/baseline/{func.__name__}.png")

tests/test_imshow.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,3 @@ def test_colorbar():
108108
axs[2].format(title="Imshow plot\ndiscrete=False (default)", yformatter="auto")
109109
fig.show()
110110
return fig
111-
112-
113-
if __name__ == "__main__":
114-
for func in [
115-
test_standardized_input,
116-
test_inbounds_data,
117-
test_colorbar,
118-
]:
119-
fig = func()
120-
fig.savefig(f"./tests/baseline/{func.__name__}.png")
121-
plt.show(block=1)

0 commit comments

Comments
 (0)