Skip to content

Commit

Permalink
update mpl fig hashes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgieseler committed Jul 22, 2024
1 parent 9ca1eed commit 037ef0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"solarmach.tests.test.test_solarmach_plot": "0366cb2279a2434ce86a56b929dfa511d0cc4d8294059579a9dbd1d48d331371",
"solarmach.tests.test.test_solarmach_pfss": "e6c7f56b1a435ff8c9c734fa238be1f845f1673cf2906ed01b6c0eceff14fc9e"
"solarmach.tests.test.test_solarmach_pfss": "1e15a3800fe0608d3e7d94b5413ec2497c19001f0aabd9931fa6d421b1738854"
}
6 changes: 3 additions & 3 deletions solarmach/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def test_solarmach_wrong_datetime_format():

"""
Create/update hash library for the following matplotlib tests by running for example the following command from the base package dir:
tox -e py310-test -- --mpl-generate-hash-library=solarmach/tests/figure_hashes_mpl_390.json --mpl-deterministic
tox -e py311-test -- --mpl-generate-hash-library=solarmach/tests/figure_hashes_mpl_391.json --mpl-deterministic
"""


@pytest.mark.mpl_image_compare(hash_library=Path(__file__).parent / 'figure_hashes_mpl_390.json', deterministic=True)
@pytest.mark.mpl_image_compare(hash_library=Path(__file__).parent / 'figure_hashes_mpl_391.json', deterministic=True)
def test_solarmach_plot():
body_list = ['STEREO-A']
vsw_list = [400]
Expand All @@ -125,7 +125,7 @@ def test_solarmach_plot():
return fig


@pytest.mark.mpl_image_compare(hash_library=Path(__file__).parent / 'figure_hashes_mpl_390.json', deterministic=True)
@pytest.mark.mpl_image_compare(hash_library=Path(__file__).parent / 'figure_hashes_mpl_391.json', deterministic=True)
def test_solarmach_pfss():
date = '2021-4-1 1:00:00'
body_list = ['Earth', 'STEREO-A']
Expand Down

0 comments on commit 037ef0b

Please sign in to comment.