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 dbt test for address consistency #22

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

DistributedDoge
Copy link
Collaborator

@DistributedDoge DistributedDoge commented Dec 27, 2023

Tests that make sure all addresses are stored in consistent, lowercase format.

  • added generic test is_address_lowercase which should be applied to every address
  • added make test which runs dbt test
  • started working on schema description

Second commit modifies the dbt models to make sure tests actually pass.

Interesting side-effect is that calling make run (or selectively materializing asset for which test exists) will actually run tests as the final step, even though I did not touch any configuration.

@@ -0,0 +1,8 @@
{% test is_address_lowercase(model, column_name) %}
Copy link
Owner

Choose a reason for hiding this comment

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

This looks super useful for consistent merges!

@DistributedDoge DistributedDoge changed the title WIP: Add dbt test for address consistency Add dbt test for address consistency Dec 27, 2023
@DistributedDoge DistributedDoge marked this pull request as ready for review December 27, 2023 23:36
Copy link
Owner

@davidgasquez davidgasquez left a comment

Choose a reason for hiding this comment

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

LGTM!

I assume this is ready to merge, right?

@davidgasquez davidgasquez linked an issue Jan 3, 2024 that may be closed by this pull request
@DistributedDoge
Copy link
Collaborator Author

Ready to merge., love the new CI.

@davidgasquez davidgasquez merged commit 8df54ef into davidgasquez:main Jan 3, 2024
1 check 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.

Create dbt tests to ensure data quality
2 participants