Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: [AEA-0000] - fix for running in sandbox #163

Merged
merged 5 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions features/steps/eps_api_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

@given("I successfully prepare and sign a prescription")
def i_prepare_and_sign_a_prescription(context):
if "sandbox" in context.config.userdata["env"].lower() and context.config.userdata["product"].upper() != "EPS-FHIR":
return
i_prepare_a_new_prescription(context, "nominated")
i_sign_a_new_prescription(context=context)

Expand Down
5 changes: 5 additions & 0 deletions features/steps/pfp_api_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ def i_am_authenticated(context):

@when("I request my prescriptions")
def i_request_my_prescriptions(context):
if (
"sandbox" in context.config.userdata["env"].lower()
and "PFP" in context.config.userdata["product"].upper()
):
context.nhs_number = "9449304130"
get_prescriptions(context)


Expand Down