Skip to content

Commit b8bdb7c

Browse files
committed
Refactor test_basemap_winkel_tripel and add to dvc
1 parent 901733c commit b8bdb7c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
outs:
2+
- md5: 8c3cb3ee180415d2f01a214f7f05f916
3+
size: 91501
4+
path: test_basemap_winkel_tripel.png

pygmt/tests/test_basemap.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,14 @@ def test_basemap_polar():
7474
return fig
7575

7676

77-
@check_figures_equal()
77+
@pytest.mark.mpl_image_compare
7878
def test_basemap_winkel_tripel():
7979
"""
8080
Create a Winkel Tripel basemap plot.
8181
"""
82-
fig_ref, fig_test = Figure(), Figure()
83-
fig_ref.basemap(R="90/450/-90/90", J="R270/25c", B="afg")
84-
fig_test.basemap(region=[90, 450, -90, 90], projection="R270/25c", frame="afg")
85-
return fig_ref, fig_test
82+
fig = Figure()
83+
fig.basemap(region=[90, 450, -90, 90], projection="R270/25c", frame="afg")
84+
return fig
8685

8786

8887
@check_figures_equal()

0 commit comments

Comments
 (0)