Skip to content

Commit 28fa478

Browse files
committed
Refactor test_basemap_polar to use mpl_image_compare and track png files in dvc
1 parent 3208519 commit 28fa478

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed
-84.6 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
outs:
2+
- md5: 4750e440adfc5b4b383315fa7ed239dd
3+
size: 78820
4+
path: test_basemap_polar.png

pygmt/tests/test_basemap.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,14 @@ def test_basemap_power_axis():
6464
return fig
6565

6666

67-
@check_figures_equal()
67+
@pytest.mark.mpl_image_compare
6868
def test_basemap_polar():
6969
"""
7070
Create a polar basemap plot.
7171
"""
72-
fig_ref, fig_test = Figure(), Figure()
73-
# Use single-character arguments for the reference image
74-
fig_ref.basemap(R="0/360/0/1000", J="P6i", B="afg")
75-
fig_test.basemap(region=[0, 360, 0, 1000], projection="P6i", frame="afg")
76-
77-
return fig_ref, fig_test
72+
fig = Figure()
73+
fig.basemap(region=[0, 360, 0, 1000], projection="P6i", frame="afg")
74+
return fig
7875

7976

8077
@check_figures_equal()

0 commit comments

Comments
 (0)