Skip to content

Commit af2761a

Browse files
committed
check summary log for ambiguous variant
1 parent 3dbe8d7 commit af2761a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pgscatalog.match/tests/test_match_cli.py

+6
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ def test_duplicated(tmp_path_factory, good_variants, duplicated_scorefile):
147147
]
148148
assert "18:24337424:C:G" not in (x["ID"] for x in f1variants + f2variants)
149149

150+
with open(outdir / "test_summary.csv") as f:
151+
summary_log = list(csv.DictReader(f, delimiter=","))
152+
153+
# the ambiguous variant gets picked up in the summary log table
154+
assert sum(x["ambiguous"] == "true" for x in summary_log) == 1
155+
150156

151157
def test_multiallelic(tmp_path_factory, multiallelic_variants, good_scorefile):
152158
outdir = tmp_path_factory.mktemp("outdir")

0 commit comments

Comments
 (0)