Skip to content

Commit acebf96

Browse files
committed
Add one more test to increase coverage
1 parent cb6bf1e commit acebf96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pygmt/tests/test_text.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def test_text_invalid_inputs(region):
141141
fig.text(
142142
region=region, projection="x1c", position="MC", text=["text1", "text2"]
143143
)
144+
with pytest.raises(GMTInvalidInput):
145+
fig.text(region=region, projection="x1c", textfiles="file.txt", x=1.2, y=2.4)
144146

145147

146148
@pytest.mark.mpl_image_compare

0 commit comments

Comments
 (0)