File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,18 @@ def test_invalid_nhs_number(self):
8181 response = self .default_imms_api .create_immunization (imms , expected_status_code = 400 )
8282 self .assertEqual (response .status_code , 400 )
8383
84+ def test_valid_nhs_number_no_pds (self ):
85+ """it should accept the request if nhs-number is valid but was previously known to have been
86+ notified as non-existent by PDS"""
87+ valid_nhs_number = "9462206376"
88+ imms = generate_imms_resource (nhs_number = valid_nhs_number )
89+
90+ response = self .default_imms_api .create_immunization (imms )
91+
92+ self .assertEqual (response .status_code , 201 , response .text )
93+ self .assertEqual (response .text , "" )
94+ self .assertTrue ("Location" in response .headers )
95+
8496 def test_validation (self ):
8597 """it should validate Immunization"""
8698 # NOTE: This e2e test is here to prove validation logic is wired to the backend.
You can’t perform that action at this time.
0 commit comments