Skip to content

Commit

Permalink
chore: try to increase test coverage over new method
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Oct 16, 2024
1 parent 3e6ad5a commit 909a4b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/api/test_variant_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ def test_variant_overlap_detector_query(vcf_path: Path) -> None:
vcf_paths=[vcf_path], min_maf=0.0, include_missing_mafs=True
)

# test that we can close the variant overlap detector and make no side effects
variant_overlap_detector.close()

# query for all variants
assert VALID_SIMPLE_VARIANTS_APPROX == variant_overlap_detector_query(
variant_overlap_detector, refname="chr2", start=8000, end=9101
Expand All @@ -563,6 +566,9 @@ def test_variant_overlap_detector_query(vcf_path: Path) -> None:
variant_overlap_detector, refname="chr2", start=8000, end=9000
) == get_simple_variant_approx_by_id("complex-variant-sv-1/1", "rare-dbsnp-snp1-1/1")

# test that we can close the variant overlap detector and make no side effects
variant_overlap_detector.close()


@pytest.mark.parametrize("include_missing_mafs", [False, True])
def test_variant_overlap_query_maf_filter(vcf_path: Path, include_missing_mafs: bool) -> None:
Expand Down

0 comments on commit 909a4b5

Please sign in to comment.