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 test for enforcing contracts on incremental materializations #608

Merged
merged 5 commits into from
Mar 28, 2023

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Mar 16, 2023

resolves dbt-labs/dbt-core#7154

Description

Adds (and reorganizes) tests.

Checklist

@emmyoop emmyoop added the Skip Changelog Skips GHA to check for changelog file label Mar 16, 2023
@cla-bot cla-bot bot added the cla:yes label Mar 16, 2023
@emmyoop emmyoop force-pushed the er/ct-2293-incremental-mat branch 2 times, most recently from cb93842 to 4821db5 Compare March 22, 2023 19:38
@emmyoop emmyoop marked this pull request as ready for review March 22, 2023 20:39
@emmyoop emmyoop requested a review from a team as a code owner March 22, 2023 20:39
@emmyoop emmyoop requested review from McKnight-42 and mikealfare and removed request for McKnight-42 March 22, 2023 20:39

@pytest.fixture(scope="class")
def expected_error_messages(self):
return ["Required field id cannot be null"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a newline at the end here so that the linters don't freak out. I'm actually surprised it passed the code checks. Perhaps we didn't turn it on for tests/functional yet in dbt-spark.

@emmyoop emmyoop force-pushed the er/ct-2293-incremental-mat branch from 4821db5 to 58466db Compare March 27, 2023 19:13
@emmyoop emmyoop requested a review from mikealfare March 27, 2023 20:22
@emmyoop emmyoop merged commit 500867b into main Mar 28, 2023
@emmyoop emmyoop deleted the er/ct-2293-incremental-mat branch March 28, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-2293] Enforce model contracts for incremental materializations
3 participants