Skip to content

Commit f6fa665

Browse files
committed
wip on claims
1 parent 402a91b commit f6fa665

File tree

4 files changed

+647
-0
lines changed

4 files changed

+647
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@eps_fhir_dispensing @regression @blocker @smoke
2+
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4432
3+
Feature: I can dispense prescriptions
4+
5+
@claim
6+
Scenario: I can claim for a prescription
7+
Given a new prescription has been dispensed using proxygen apis
8+
When I claim for the prescription
9+
Then the response indicates a success
10+
And the response body indicates a successful claim

features/steps/eps_api_steps.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
return_prescription,
1515
withdraw_dispense_notification,
1616
call_validator,
17+
claim_prescription,
1718
)
1819
from features.environment import APIGEE_APPS
1920
from methods.shared.common import assert_that, get_auth
@@ -139,6 +140,13 @@ def i_amend_a_dispense_notification(context):
139140
amend_dispense_notification(context)
140141

141142

143+
@when("I claim for the prescription")
144+
def i_claim_for_a_prescription(context):
145+
if "sandbox" in context.config.userdata["env"].lower():
146+
return
147+
claim_prescription(context)
148+
149+
142150
@when("I withdraw the dispense notification")
143151
def i_withdraw_the_dispense_notification(context):
144152
if "sandbox" in context.config.userdata["env"].lower():

0 commit comments

Comments
 (0)