File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
tests/integration/in_process Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,23 @@ def test_actionable_with_and_rule(
324324 ),
325325 )
326326
327+ def test_empty_response_when_no_campaign_mapped_to_consumer (
328+ self ,
329+ client : FlaskClient ,
330+ persisted_person : NHSNumber ,
331+ campaign_config : CampaignConfig , # noqa: ARG002
332+ consumer_mapping : ConsumerMapping , # noqa: ARG002
333+ ):
334+ # Given
335+ consumer_id_not_having_mapping = "23-jo4hn-ce4na"
336+ headers = {"nhs-login-nhs-number" : str (persisted_person ), CONSUMER_ID : consumer_id_not_having_mapping }
337+
338+ # When
339+ response = client .get (f"/patient-check/{ persisted_person } ?includeActions=Y" , headers = headers )
340+
341+ # Then
342+ assert_that (response , is_response ().with_status_code (HTTPStatus .NOT_FOUND ))
343+
327344
328345class TestVirtualCohortResponse :
329346 def test_not_eligible_by_rule_when_only_virtual_cohort_is_present (
You can’t perform that action at this time.
0 commit comments