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

Add _build_addr method to PHDCBuilder #1070

Merged
merged 5 commits into from
Jan 12, 2024
Merged

Add _build_addr method to PHDCBuilder #1070

merged 5 commits into from
Jan 12, 2024

Conversation

m-goggins
Copy link
Collaborator

PULL REQUEST

Summary

This PR adds an internal method for building out the address section of a PHDC.

Related Issue

Fixes #1052

Additional Information

  • This PR assumes a single address as the input with a single line. PHDC does allow for mutiple lines in an address or for the address to be condensed on a single line.

Checklist

  • If this code affects the other scrum team, have they been notified? (In Slack, as reviewers, etc.)

@m-goggins m-goggins linked an issue Jan 12, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bcad77f) 96.93% compared to head (3c51c95) 96.93%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1070   +/-   ##
=======================================
  Coverage   96.93%   96.93%           
=======================================
  Files          48       48           
  Lines        3037     3037           
=======================================
  Hits         2944     2944           
  Misses         93       93           
Flag Coverage Δ
unit-tests 96.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@m-goggins m-goggins marked this pull request as ready for review January 12, 2024 18:59
@m-goggins m-goggins changed the title Phdc build address Add _build_addr method to PHDCBuilder Jan 12, 2024
@pytest.mark.parametrize(
"build_addr_test_data, expected_result",
[
# Success with all values present
Copy link
Collaborator

Choose a reason for hiding this comment

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

the comment describing the expectation of the test set up data is a good idea 💡

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Much easier for me to keep track as I make the tests too :)

Copy link
Collaborator

@robertmitchellv robertmitchellv left a comment

Choose a reason for hiding this comment

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

this looks good to me 🚀

@m-goggins m-goggins added this pull request to the merge queue Jan 12, 2024
Merged via the queue into main with commit bd7161e Jan 12, 2024
34 checks passed
@m-goggins m-goggins deleted the phdc-build-address branch January 12, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Develop PHDC address builder
2 participants