-
Notifications
You must be signed in to change notification settings - Fork 93
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
Conversation
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing good catch
Refactor V619_2 edits to use passed in dates. Also replaced and deleted old V619_2 edits and updated unit tests.