Skip to content

Commit

Permalink
Add more test cases of multiple patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Jan 27, 2025
1 parent 12f5ab3 commit 2a16023
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dkist/dataset/tests/test_load_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ def test_asdf_regex(filename, match):
"VBI_L1_not_a_proper_name.asdf",
"VBI_L1_20231016T184519_AJQWW_user_tools.asdf",
"VBI_L1_20231016T184519_AJQWW_metadata.asdf",), (0, 1, 3), id="2 other patterns & _user_tools & _metadata"),
pytest.param(("VBI_L1_20231016T184519_AJQWW.asdf",
"VISP_L1_20231016T184519_AJQWW.asdf",), (0, 1), id="Two patterns, no suffix"),
pytest.param(("VBI_L1_20231016T184519_AAA.asdf",
"VBI_L1_20231016T184519_AAA_metadata.asdf",
"VBI_L1_20231116T184519_BBBBBBB.asdf",
"VBI_L1_20231216T184519_CCCCCCC.asdf",
"VBI_L1_20231216T184519_CCCCCCC_user_tools.asdf"), (1, 2, 4), id="Three patterns, mixed suffixes"),
])
def test_select_asdf(tmp_path, asdf_path, filenames, indices, mocker):
asdf_folder = generate_asdf_folder(tmp_path, asdf_path, filenames)

Check warning on line 180 in dkist/dataset/tests/test_load_dataset.py

View check run for this annotation

Codecov / codecov/patch

dkist/dataset/tests/test_load_dataset.py#L180

Added line #L180 was not covered by tests
Expand Down

0 comments on commit 2a16023

Please sign in to comment.