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

Issue 36: increase test coverage of validation.py #68

Merged
merged 77 commits into from
Nov 14, 2024

Conversation

SSchotten
Copy link
Collaborator

@SSchotten SSchotten commented Nov 2, 2024

  • Rename df_checker.py -> validation.py
  • Move filter_validation_dict_by_table_name to validation_input.py
  • Separated validation logic into a ValidationSettings dataclass (containing the user input) and a ValidationRunner class (containing the actual calls to GX)
  • Increased coverage of test_validation.py to 100% (Note: a number of functions/methods using GX logic only were exempted from coverage/testing. 😁 So take '100% coverage' here with a pinch of salt.
    • Increasing to an actual 100% coverage is still a TODO, and would require mocking large parts of the validation logic.
  • Modified tests/test_data/dq_rules.json
  • Turned some attributes into private ones, renamed some attributes/variables, and other minor changes.

@SSchotten SSchotten linked an issue Nov 2, 2024 that may be closed by this pull request
@SSchotten SSchotten marked this pull request as ready for review November 11, 2024 13:24
@ArthurKordes ArthurKordes merged commit d5e12e3 into main Nov 14, 2024
3 checks passed
@ArthurKordes ArthurKordes deleted the issue/36-validation-coverage branch November 14, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Increase test coverage of df_checker.py to 95%
2 participants