Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure.savefig: Add a new test for the show parameter and simplify existing tests. #3568

Merged
merged 6 commits into from
Nov 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify test_figure_savefig_unknown_extension
seisman committed Oct 31, 2024
commit cab8886c778c0316300f4a00674034e2b3469efe
4 changes: 1 addition & 3 deletions pygmt/tests/test_figure.py
Original file line number Diff line number Diff line change
@@ -169,9 +169,7 @@ def test_figure_savefig_unknown_extension():
"""
fig = Figure()
fig.basemap(region="10/70/-300/800", projection="X3i/5i", frame="af")
prefix = "test_figure_savefig_unknown_extension"
fmt = "test"
fname = f"{prefix}.{fmt}"
fname = "test_figure_savefig_unknown_extension.test"
with pytest.raises(GMTInvalidInput, match="Unknown extension '.test'."):
fig.savefig(fname)