Skip to content

Commit

Permalink
Add a test for the class refatt map to ensure model changes don't bre…
Browse files Browse the repository at this point in the history
…ak the enref functions
  • Loading branch information
theferrit32 authored and korikuzma committed Sep 18, 2023
1 parent b8c6fd2 commit 37cbdfd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_vrs2.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,15 @@ def test_enref():
'end': 128325835})
assert dereffed.location.model_dump(exclude_none=True) == allele_383650.location.model_dump(exclude_none=True)
assert dereffed.model_dump() == allele_383650.model_dump()


def test_class_refatt_map():
class_refatt_map_expected = {
'Allele': ['location'],
'Haplotype': ['members'],
'_CopyNumber': ['location'],
'CopyNumberCount': ['location'],
'CopyNumberChange': ['location'],
'GenotypeMember': ['variation']
}
assert class_refatt_map_expected == models.class_refatt_map

0 comments on commit 37cbdfd

Please sign in to comment.