Skip to content

Commit

Permalink
add tests for check_variant_alleles()
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseminbridges committed Dec 4, 2024
1 parent d07ecdf commit e06b1ea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_phenopacket_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
from copy import deepcopy
from pathlib import Path

from phenopackets import (
Expand Down Expand Up @@ -606,6 +607,16 @@ def test_check_incomplete_disease_record(self):
def test_check_incomplete_disease_record_missing_records(self):
self.assertTrue(self.structural_variant_phenopacket.check_incomplete_disease_record())

def test_check_variant_alleles(self):
self.assertFalse(self.phenopacket.check_variant_alleles())

def test_check_variant_alleles_duplicate(self):
phenopacket_copy = deepcopy(self.phenopacket)
phenopacket_copy.phenopacket_contents.interpretations[0].diagnosis.genomic_interpretations[
0
].variant_interpretation.variation_descriptor.vcf_record.alt = "C"
self.assertTrue(phenopacket_copy.check_variant_alleles())


class TestPhenopacketRebuilder(unittest.TestCase):
@classmethod
Expand Down

0 comments on commit e06b1ea

Please sign in to comment.