We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c17112 commit 6fa020dCopy full SHA for 6fa020d
pygmt/tests/test_figure.py
@@ -8,7 +8,7 @@
8
import numpy as np
9
import numpy.testing as npt
10
import pytest
11
-from pygmt import Figure
+from pygmt import Figure, set_display
12
from pygmt.exceptions import GMTInvalidInput
13
14
@@ -174,3 +174,12 @@ def test_figure_show_invalid_method():
174
fig.basemap(region="10/70/-300/800", projection="X3i/5i", frame="af")
175
with pytest.raises(GMTInvalidInput):
176
fig.show(method="test")
177
+
178
179
+def test_figure_set_display_invalid():
180
+ """
181
+ Test to check if an error is raised when an invalid method is passed to
182
+ set_display.
183
184
+ with pytest.raises(GMTInvalidInput):
185
+ set_display(method="invalid")
0 commit comments