Skip to content

Commit f6d08a0

Browse files
committed
Simplify the test script
1 parent 6988c0f commit f6d08a0

1 file changed

Lines changed: 12 additions & 22 deletions

File tree

pygmt/tests/test_pygmtlogo.py

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,16 @@ def test_pygmtlogo_circle_horizontal_wordmark():
6060
projection="x1c",
6161
frame=Frame(fill="gray", axis=Axis(grid=0.5)),
6262
)
63-
fig.pygmtlogo(
64-
position=Position((0, 8.5), anchor="ML", cstype="mapcoords"),
65-
theme="light",
66-
wordmark="horizontal",
67-
)
68-
fig.pygmtlogo(
69-
position=Position((0, 6), anchor="ML", cstype="mapcoords"),
70-
theme="dark",
71-
wordmark="horizontal",
72-
)
73-
fig.pygmtlogo(
74-
position=Position((0, 3.5), anchor="ML", cstype="mapcoords"),
75-
theme="light",
76-
color=False,
77-
wordmark="horizontal",
78-
)
79-
fig.pygmtlogo(
80-
position=Position((0, 1), anchor="ML", cstype="mapcoords"),
81-
theme="dark",
82-
color=False,
83-
wordmark="horizontal",
84-
)
63+
for (x, y), theme, color in [
64+
((0, 8.5), "light", True),
65+
((0, 6), "dark", True),
66+
((0, 3.5), "light", False),
67+
((0, 1), "dark", False),
68+
]:
69+
fig.pygmtlogo(
70+
position=Position((x, y), anchor="ML", cstype="mapcoords"),
71+
theme=theme,
72+
color=color,
73+
wordmark="horizontal",
74+
)
8575
return fig

0 commit comments

Comments
 (0)