Skip to content

Commit 0810823

Browse files
author
Lingling Peng
committed
fix test
1 parent 4164754 commit 0810823

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tests/unit/synapseclient/extensions/unit_test_create_json_schema.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -853,9 +853,6 @@ def test_get_conditional_properties_multiple_watched_properties(
853853
This test covers a bug where the 'value' variable was being mutated inside
854854
the inner loop when converting to display names.
855855
856-
On the first iteration, `value` is converted from class label to display name.
857-
On subsequent iterations, the code tries to look up the display name in the graph,
858-
which fails with KeyError because graph nodes are keyed by class labels.
859856
"""
860857
# GIVEN a GraphTraversalState instance where
861858
# - CancerType has a reverse dependency of FamilyHistory
@@ -871,7 +868,7 @@ def test_get_conditional_properties_multiple_watched_properties(
871868
gts.move_to_next_node()
872869
result = gts.get_conditional_properties()
873870
assert len(result) == 2
874-
assert ("Diagnosis", "Family History") in result
871+
assert ("Year of Birth", "Family History") in result
875872
assert ("Sex", "Family History") in result
876873

877874
def test_update_valid_values_map(self, dmge: DataModelGraphExplorer) -> None:

0 commit comments

Comments
 (0)