Skip to content

Commit

Permalink
Fix: [AEA-0000] - fix for running in sandbox (#163)
Browse files Browse the repository at this point in the history
## Summary

**Remove items from this list if they are not relevant. Remove this line
once this has been done**

- Routine Change

### Details

Add any summary information of what is in the change. **Remove this line
if you have nothing to add.**

## Pull Request Naming

Pull requests should be named using the following format:

```text
Tag: [AEA-NNNN] - Short description
```

Tag can be one of:

- `Fix` - for a bug fix. (Patch release)
- `Update` - either for a backwards-compatible enhancement or for a rule
change that adds reported problems. (Patch release)
- `New` - implemented a new feature. (Minor release)
- `Breaking` - for a backwards-incompatible enhancement or feature.
(Major release)
- `Docs` - changes to documentation only. (Patch release)
- `Build` - changes to build process only. (No release)
- `Upgrade` - for a dependency upgrade. (Patch release)
- `Chore` - for refactoring, adding tests, etc. (anything that isn't
user-facing). (Patch release)

If the current release is x.y.z then
- a patch release increases z by 1
- a minor release increases y by 1
- a major release increases x by 1

Correct tagging is necessary for our automated versioning and release
process ([Release](./RELEASE.md)).

The description of your pull request will be used as the commit message
for the merge, and also be included in the changelog. Please ensure that
your title is sufficiently descriptive.

### Rerunning Checks

If you need to rename your pull request, you can restart the checks by
either:

- Closing and reopening the pull request
- pushing an empty commit 
  ```bash
  git commit --allow-empty -m 'trigger build'
  git push
  ```
- Amend your last commit and force push to the branch
  ```bash
  git commit --amend --no-edit
  git push --force
  ```

Rerunning the checks from within the pull request will not use the
updated title.
  • Loading branch information
seansteberisal authored Sep 26, 2024
1 parent 8d6d2ee commit 082d95a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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

0 comments on commit 082d95a

Please sign in to comment.