Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ppettitau committed Oct 8, 2024
1 parent 9b3370c commit 2350dbb
Showing 1 changed file with 36 additions and 14 deletions.
50 changes: 36 additions & 14 deletions rdrf/report/tests/schema_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_query_data_summary_max_address_count(self):
test {
allPatients {
dataSummary {
maxAddressCount
patientaddressSet { maxCount }
}
}
}
Expand All @@ -86,7 +86,11 @@ def test_query_data_summary_max_address_count(self):
{
"data": {
"test": {
"allPatients": {"dataSummary": {"maxAddressCount": 0}}
"allPatients": {
"dataSummary": {
"patientaddressSet": {"maxCount": 0}
}
}
}
}
},
Expand All @@ -106,7 +110,11 @@ def test_query_data_summary_max_address_count(self):
{
"data": {
"test": {
"allPatients": {"dataSummary": {"maxAddressCount": 2}}
"allPatients": {
"dataSummary": {
"patientaddressSet": {"maxCount": 2}
}
}
}
}
},
Expand Down Expand Up @@ -140,7 +148,7 @@ def test_query_data_summary_max_working_group_count(self):
test {
allPatients {
dataSummary {
maxWorkingGroupCount
workingGroups { maxCount }
}
}
}
Expand All @@ -154,7 +162,7 @@ def test_query_data_summary_max_working_group_count(self):
"data": {
"test": {
"allPatients": {
"dataSummary": {"maxWorkingGroupCount": 0}
"dataSummary": {"workingGroups": {"maxCount": 0}}
}
}
}
Expand All @@ -174,7 +182,7 @@ def test_query_data_summary_max_working_group_count(self):
"data": {
"test": {
"allPatients": {
"dataSummary": {"maxWorkingGroupCount": 3}
"dataSummary": {"workingGroups": {"maxCount": 3}}
}
}
}
Expand Down Expand Up @@ -214,7 +222,7 @@ def test_query_data_summary_max_clinician_count(self):
test {
allPatients {
dataSummary {
maxClinicianCount
registeredClinicians { maxCount }
}
}
}
Expand All @@ -227,7 +235,11 @@ def test_query_data_summary_max_clinician_count(self):
{
"data": {
"test": {
"allPatients": {"dataSummary": {"maxClinicianCount": 0}}
"allPatients": {
"dataSummary": {
"registeredClinicians": {"maxCount": 0}
}
}
}
}
},
Expand All @@ -244,7 +256,11 @@ def test_query_data_summary_max_clinician_count(self):
{
"data": {
"test": {
"allPatients": {"dataSummary": {"maxClinicianCount": 4}}
"allPatients": {
"dataSummary": {
"registeredClinicians": {"maxCount": 4}
}
}
}
}
},
Expand All @@ -270,7 +286,7 @@ def test_query_data_summary_max_parent_guardian_count(self):
test {
allPatients {
dataSummary {
maxParentGuardianCount
parentguardianSet { maxCount }
}
}
}
Expand All @@ -284,7 +300,9 @@ def test_query_data_summary_max_parent_guardian_count(self):
"data": {
"test": {
"allPatients": {
"dataSummary": {"maxParentGuardianCount": 0}
"dataSummary": {
"parentguardianSet": {"maxCount": 0}
}
}
}
}
Expand All @@ -306,7 +324,9 @@ def test_query_data_summary_max_parent_guardian_count(self):
"data": {
"test": {
"allPatients": {
"dataSummary": {"maxParentGuardianCount": 2}
"dataSummary": {
"parentguardianSet": {"maxCount": 2}
}
}
}
}
Expand All @@ -319,7 +339,7 @@ def test_query_data_summary_max_parent_guardian_count(self):
another {
allPatients {
dataSummary {
maxParentGuardianCount
parentguardianSet { maxCount }
}
}
}
Expand All @@ -332,7 +352,9 @@ def test_query_data_summary_max_parent_guardian_count(self):
"data": {
"another": {
"allPatients": {
"dataSummary": {"maxParentGuardianCount": 3}
"dataSummary": {
"parentguardianSet": {"maxCount": 3}
}
}
}
}
Expand Down

0 comments on commit 2350dbb

Please sign in to comment.