Skip to content

Commit 571cc21

Browse files
Fixup ICF tests
1 parent aabef12 commit 571cc21

File tree

1 file changed

+1
-41
lines changed

1 file changed

+1
-41
lines changed

tests/test_icf.py

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TestSmallExample:
2525
@pytest.fixture(scope="class")
2626
def icf(self, tmp_path_factory):
2727
out = tmp_path_factory.mktemp("data") / "example.exploded"
28-
return vcf2zarr.explode(out, [self.data_path], local_alleles=False)
28+
return vcf2zarr.explode(out, [self.data_path])
2929

3030
def test_format_version(self, icf):
3131
assert icf.metadata.format_version == icf_mod.ICF_METADATA_FORMAT_VERSION
@@ -91,46 +91,6 @@ def test_INFO_NS(self, icf):
9191
assert icf["INFO/NS"].values == [None, None, 3, 3, 2, 3, 3, None, None]
9292

9393

94-
class TestLocalAllelesExample:
95-
data_path = "tests/data/vcf/local_alleles.vcf.gz"
96-
97-
fields = (
98-
"ALT",
99-
"CHROM",
100-
"FILTERS",
101-
"FORMAT/AD",
102-
"FORMAT/DP",
103-
"FORMAT/GQ",
104-
"FORMAT/GT",
105-
"FORMAT/LAA",
106-
"FORMAT/LPL",
107-
"FORMAT/PL",
108-
"ID",
109-
"INFO/AA",
110-
"INFO/AC",
111-
"INFO/AF",
112-
"INFO/AN",
113-
"INFO/DB",
114-
"INFO/DP",
115-
"INFO/H2",
116-
"INFO/NS",
117-
"POS",
118-
"QUAL",
119-
"REF",
120-
"rlen",
121-
)
122-
123-
@pytest.fixture(scope="class")
124-
def icf(self, tmp_path_factory):
125-
out = tmp_path_factory.mktemp("data") / "example.exploded"
126-
return vcf2zarr.explode(out, [self.data_path])
127-
128-
def test_summary_table(self, icf):
129-
data = icf.summary_table()
130-
fields = [d["name"] for d in data]
131-
assert tuple(sorted(fields)) == self.fields
132-
133-
13494
class TestIcfWriterExample:
13595
data_path = "tests/data/vcf/sample.vcf.gz"
13696

0 commit comments

Comments
 (0)