Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Fi 612 fix tests for multi patient #435

Merged
merged 4 commits into from
Feb 7, 2020

Conversation

ghost
Copy link

@ghost ghost commented Feb 4, 2020

This PR just adds unit tests back in. It only uses one patient for the tests.

Submitter:

  • This pull request describes why these changes were made
  • Internal ticket for this PR: https://oncprojectracking.healthit.gov/support/browse/FI-612
  • Internal ticket links to this PR
  • Internal ticket is properly labeled (Community/Program)
  • Internal ticket has a justification for its Community/Program label
  • Code diff has been reviewed for extraneous/missing code
  • Tests are included and test edge cases
  • Tests/code quality metrics have been run locally and pass

Reviewer 1:

Name:

  • Code is maintainable and reusable, reuses existing code and infrastructure
    where appropriate, and accomplishes the task's purpose
  • The tests appropriately test the new code, including edge cases
  • You have tried to break the code

Reviewer 2:

Name:

  • Code is maintainable and reusable, reuses existing code and infrastructure
    where appropriate, and accomplishes the task's purpose
  • The tests appropriately test the new code, including edge cases
  • You have tried to break the code

@@ -12,8 +12,8 @@ describe Inferno::Sequence::<%= class_name %> do
@token = 'ABC'
@instance = Inferno::Models::TestingInstance.create(url: @base_url, token: @token, selected_module: '<%= module_name %>')
@client = FHIR::Client.for_testing_instance(@instance)
@patient_id = 'example'
@instance.patient_id = @patient_id
@patient_ids = 'example'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to replace the other locations where 'example' is hard coded with this instance variable?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep good point. All other hardcoded 'example' locations are changed to '@sequence.patient_ids.first'.

@arscan arscan merged commit ebe6b08 into development Feb 7, 2020
@arscan arscan deleted the fi-612-fix-tests-for-multi-patient branch February 7, 2020 21:27
@radamson radamson mentioned this pull request Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants