Skip to content

Commit

Permalink
update expected schema validator errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GiaJordan committed Oct 10, 2023
1 parent 368834a commit 5cc5a2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def test_dag(self, helpers):

# nodes could be in different order so need to account for that
expected_errors = ['Schematic requires models be a directed acyclic graph (DAG). Your graph is not a DAG, we found a loop between: Patient and PatientID, please remove this loop from your model and submit again.',
'Schematic requires models be a directed acyclic graph (DAG). Your graph is not a DAG, we found a loop between: PatientID and Patient, please remove this loop from your model and submit again.']
'Schematic requires models be a directed acyclic graph (DAG). Your graph is not a DAG, we found a loop between: PatientID and Patient, please remove this loop from your model and submit again.',
'Schematic requires models be a directed acyclic graph (DAG). Your graph is not a DAG, we found a loop between: Diagnosis and Diagnosis, please remove this loop from your model and submit again.']

assert validator_errors[0] in expected_errors

0 comments on commit 5cc5a2c

Please sign in to comment.