diff --git a/pygmt/helpers/testing.py b/pygmt/helpers/testing.py index 364faa532b5..1192d0f23fa 100644 --- a/pygmt/helpers/testing.py +++ b/pygmt/helpers/testing.py @@ -42,7 +42,9 @@ def check_figures_equal(*, extensions=("png",), tol=0.0, result_dir="result_imag ... fig_ref = Figure() ... fig_ref.basemap(projection="X5c", region=[0, 5, 0, 5], frame=True) ... fig_test = Figure() - ... fig_test.basemap(projection="X5c", region=[0, 5, 0, 5], frame="af") + ... fig_test.basemap( + ... projection="X5c", region=[0, 5, 0, 5], frame=["WrStZ", "af"] + ... ) ... return fig_ref, fig_test >>> test_check_figures_equal() >>> assert len(os.listdir("tmp_result_images")) == 0 @@ -51,7 +53,7 @@ def check_figures_equal(*, extensions=("png",), tol=0.0, result_dir="result_imag >>> @check_figures_equal(result_dir="tmp_result_images") ... def test_check_figures_unequal(): ... fig_ref = Figure() - ... fig_ref.basemap(projection="X5c", region=[0, 5, 0, 5], frame=True) + ... fig_ref.basemap(projection="X5c", region=[0, 6, 0, 6], frame=True) ... fig_test = Figure() ... fig_test.basemap(projection="X5c", region=[0, 3, 0, 3], frame=True) ... return fig_ref, fig_test