Skip to content

Commit

Permalink
tests for new invert edge function
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Dec 19, 2024
1 parent edf3e98 commit e3f550f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,17 @@ def test_edge_inversion():
OBJECT_ID: 'hgnc:2',
SUBJECT_ASPECT_QUALIFIER: 'some_aspect',
SUBJECT_DIRECTION_QUALIFIER: 'up',
f'{OBJECT_ID}_fake_qualifier': 'test_value'
f'{OBJECT_ID}_fake_qualifier': 'test_value',
f'test_{OBJECT_ID}_middle': 'test_value_middle',
f'test_end_{OBJECT_ID}': 'test_value_end',
}
inverted_edge = invert_edge(edge_1)
assert inverted_edge == {
OBJECT_ID: 'hgnc:1',
SUBJECT_ID: 'hgnc:2',
OBJECT_ASPECT_QUALIFIER: 'some_aspect',
OBJECT_DIRECTION_QUALIFIER: 'up',
f'{SUBJECT_ID}_fake_qualifier': 'test_value'
f'{SUBJECT_ID}_fake_qualifier': 'test_value',
f'test_{SUBJECT_ID}_middle': 'test_value_middle',
f'test_end_{SUBJECT_ID}': 'test_value_end',
}

0 comments on commit e3f550f

Please sign in to comment.