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

Refactor V619_2 edits to use dynamic dates #4904

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

jaredb96
Copy link
Contributor

Refactor V619_2 edits to use passed in dates. Also replaced and deleted old V619_2 edits and updated unit tests.

@jaredb96 jaredb96 linked an issue Sep 20, 2024 that may be closed by this pull request
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that these files are no longer needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Never unit tested 2023 so I added it here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Testing common version of edit with 2018

@@ -4,11 +4,10 @@ import hmda.model.filing.lar.LarGenerators._
import hmda.model.filing.lar.LoanApplicationRegister
import hmda.validation.rules.EditCheck
import hmda.validation.rules.lar.LarEditCheckSpec
import hmda.validation.rules.lar.validity._2018.V619_2

import hmda.validation.rules.lar.validity.common.V619_2

class V619_2Spec extends LarEditCheckSpec {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can these tests be combined into a single test file in ...rules/lar/validity/common/V619_2Spec.scala to check that all the filing years work as expected for V619_2? That way we won't have as much repetitive code to test each year

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing good catch

@jaredb96 jaredb96 merged commit f1f0232 into cfpb:master Sep 26, 2024
14 of 15 checks passed
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.

Refactor V619_2 edits to use dynamic dates
2 participants