Skip to content

Refactor GetUspsProofingResultsJob child classes and rewrite their tests#9020

Merged
tomas-nava merged 5 commits intomainfrom
tomas/lg-8441-refactor-proofing-results-jobs
Aug 17, 2023
Merged

Refactor GetUspsProofingResultsJob child classes and rewrite their tests#9020
tomas-nava merged 5 commits intomainfrom
tomas/lg-8441-refactor-proofing-results-jobs

Conversation

@tomas-nava
Copy link
Contributor

🎫 Ticket

Related to LG-8441 and LG-8034

🛠 Summary of changes

Refactored the GetUspsReadyProofingResultsJob and GetUspsWaitingProofingResultsJob classes to reduce duplication and rewrote their tests to more thoroughly test how they differ from their parent class (GetUspsProofingResultsJob). I also deleted tests that were already covered by their parent class's tests.

changelog: Internal, In-person proofing, Refactor USPS proofing job subclasses and their tests
@tomas-nava tomas-nava requested review from a team and night-jellyfish August 16, 2023 20:38
@tomas-nava tomas-nava requested review from a team and allthesignals and removed request for a team and night-jellyfish August 16, 2023 21:10
@gina-yamada
Copy link
Contributor

gina-yamada commented Aug 17, 2023

  • get_usps_proofing_results_job refactored (move blocks of code into new method- easier to read & reusable), remove duplicate code in get_usps_ready_proofing_results_job and get_usps_waiting_proofing_results_job
  • The usps_ready specs and usps_waiting specs deleted are already being tested in get_usps_proofing_results_job_spec- so nice clean up
  • specs all passing, not sure how to test locally (if possible) before approving- but code looks good to me

@tomas-nava tomas-nava merged commit f1010f7 into main Aug 17, 2023
@tomas-nava tomas-nava deleted the tomas/lg-8441-refactor-proofing-results-jobs branch August 17, 2023 16:24
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.

3 participants