Skip to content

Commit 613185c

Browse files
committed
Ignore type check for untyped array comparison in test_snp_frq.py. Rename repeated expected_alleles var.
1 parent f64e64f commit 613185c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/anoph/test_snp_frq.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ def test_snp_effects(fixture, api: AnophelesSnpFrequencyAnalysis):
156156
position = df["position"].values
157157
assert np.all(position >= transcript["start"])
158158
assert np.all(position <= transcript["end"])
159-
assert np.all(position[1:] >= position[:-1])
160-
expected_alleles = list("ACGT")
161-
assert np.all(df["ref_allele"].isin(expected_alleles))
162-
assert np.all(df["alt_allele"].isin(expected_alleles))
159+
assert np.all(position[1:] >= position[:-1]) # type: ignore
160+
test_expected_alleles = list("ACGT")
161+
assert np.all(df["ref_allele"].isin(test_expected_alleles))
162+
assert np.all(df["alt_allele"].isin(test_expected_alleles))
163163
assert np.all(df["transcript"] == transcript.name)
164164
assert np.all(df["effect"].isin(expected_effects))
165165
assert np.all(df["impact"].isin(expected_impacts))

0 commit comments

Comments
 (0)