-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into multi_model_stats_equalise_coords
- Loading branch information
Showing
7 changed files
with
170 additions
and
44 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Test `esmvalcore._provenance`.""" | ||
from esmvalcore._provenance import TrackedFile | ||
|
||
|
||
def test_set(): | ||
assert { | ||
TrackedFile('file1.nc', attributes={}), | ||
TrackedFile('file1.nc', attributes={}), | ||
TrackedFile('file2.nc', attributes={}), | ||
} == { | ||
TrackedFile('file1.nc', attributes={}), | ||
TrackedFile('file2.nc', attributes={}), | ||
} | ||
|
||
|
||
def test_sort(): | ||
file1 = TrackedFile('file1.nc', attributes={}) | ||
file2 = TrackedFile('file2.nc', attributes={}) | ||
assert sorted([file2, file1]) == [file1, file2] | ||
|
||
|
||
def test_equals(): | ||
file = TrackedFile('file.nc', attributes={}) | ||
assert file == TrackedFile('file.nc', attributes={}) |