Skip to content

Commit

Permalink
Fix pygmt/helpers/testing.py doctest for GMT 6.2.0rc1 (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 authored Apr 27, 2021
1 parent af7d27d commit 3c9f463
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pygmt/helpers/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3c9f463

Please sign in to comment.