Skip to content

Commit edd29e8

Browse files
committed
redis hget
1 parent 46e096a commit edd29e8

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

backend/tests/test_immunization_pre_validator.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,6 @@
2929
class TestImmunizationModelPreValidationRules(unittest.TestCase):
3030
"""Test immunization pre validation rules on the FHIR model using the covid sample data"""
3131

32-
MOCK_REDIS_D2V_RESPONSE = {
33-
"4740000": "SHINGLES",
34-
"6142004": "FLU",
35-
"16814004": "PCV13",
36-
"23511006": "MENACWY",
37-
"27836007": "PERTUSSIS",
38-
"55735004": "RSV",
39-
"240532009": "HPV",
40-
"840539006": "COVID19",
41-
"14189004:36653000:36989005": "MMR",
42-
"14189004:36653000:36989005:38907003": "MMRV",
43-
"397430003:398102009:76902006": "3in1"
44-
}
4532

4633
def setUp(self):
4734
"""Set up for each test. This runs before every test"""
@@ -713,7 +700,7 @@ def test_pre_validate_missing_valueCodeableConcept2(self):
713700

714701
def test_pre_validate_missing_valueCodeableConcept3(self):
715702
# Test case: valid data (should not raise an exception)
716-
self.mock_redis_client.hget.return_value = self.MOCK_REDIS_D2V_RESPONSE
703+
self.mock_redis_client.hget.return_value = "COVID19"
717704
valid_json_data = deepcopy(self.json_data)
718705
try:
719706
self.validator.validate(valid_json_data)

0 commit comments

Comments
 (0)