diff --git a/tests/test_ome_tiff_field_validator.py b/tests/test_ome_tiff_field_validator.py index adf2c25..4e5b6c9 100644 --- a/tests/test_ome_tiff_field_validator.py +++ b/tests/test_ome_tiff_field_validator.py @@ -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"), ), ) @@ -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