Skip to content

Commit

Permalink
Black again
Browse files Browse the repository at this point in the history
  • Loading branch information
jswelling committed Oct 17, 2024
1 parent 8c4c3c2 commit fc4a0af
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions tests/test_ome_tiff_field_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
@pytest.mark.parametrize(
("test_data_fname", "msg_re_list", "assay_type"),
(
("test_data/codex_tree_ometiff_bad.zip",
[
".*tubhiswt_C0_bad.ome.tif is not a valid OME.TIFF file.*",
".*sample1.ome.tif is not a valid OME.TIFF file.*",
".*sample2.ome.tif is not a valid OME.TIFF file.*",
],
"CODEX"),
("test_data/codex_tree_ometiff_good.zip",
[],
"CODEX"),
(
"test_data/codex_tree_ometiff_bad.zip",
[
".*tubhiswt_C0_bad.ome.tif is not a valid OME.TIFF file.*",
".*sample1.ome.tif is not a valid OME.TIFF file.*",
".*sample2.ome.tif is not a valid OME.TIFF file.*",
],
"CODEX",
),
("test_data/codex_tree_ometiff_good.zip", [], "CODEX"),
("test_data/fake_snrnaseq_tree_good.zip", [], "snRNAseq"),
),
)
Expand All @@ -36,8 +36,9 @@ def test_ome_tiff_field_validator(test_data_fname, msg_re_list, assay_type, tmp_
msg_re_list_dup = list(msg_re_list) # to avoid editing during iteration
match = False
for re_str in msg_re_list_dup:
if ((err_str is None and re_str is None)
or re.match(re_str, err_str, flags=re.MULTILINE)):
if (err_str is None and re_str is None) or re.match(
re_str, err_str, flags=re.MULTILINE
):
msg_re_list.remove(re_str)
match = True
break
Expand Down

0 comments on commit fc4a0af

Please sign in to comment.