Skip to content

Commit

Permalink
Add a test for raster.show() with new figure
Browse files Browse the repository at this point in the history
  • Loading branch information
adehecq committed Dec 20, 2023
1 parent 7944bfe commit 10e01e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,15 @@ def test_show(self) -> None:
plt.close()
assert True

# Test with new figure
plt.figure()
img.show()
if DO_PLOT:
plt.show()
else:
plt.close()
assert True

# Test with provided ax
ax = plt.subplot(111)
img.show(ax=ax, title="Simple plotting test")
Expand Down

0 comments on commit 10e01e4

Please sign in to comment.