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 new defer_relation argument to mock_model #520

Merged
merged 3 commits into from
Jul 6, 2023

Conversation

mikealfare
Copy link
Contributor

Description

defer_relation is an optional argument that was added to ModelNode as part of the dbt clone work. Despite it being optional, MagicMock was trying to mock it up, which failed validation tests on Path. This new argument was added to the mock parameters with a value of None to avoid creating it.

Checklist

@mikealfare mikealfare requested a review from a team as a code owner July 6, 2023 05:22
@mikealfare mikealfare self-assigned this Jul 6, 2023
@mikealfare mikealfare requested a review from Fleid July 6, 2023 05:22
@cla-bot cla-bot bot added the cla:yes label Jul 6, 2023
@mikealfare mikealfare removed the request for review from Fleid July 6, 2023 05:23
@McKnight-42
Copy link
Contributor

@mikealfare so it wasn't a actual mashumuro failure good to know great catch

@mikealfare mikealfare changed the base branch from main to bug/redshift-connector/2_0_912-connection-error July 6, 2023 15:35
@mikealfare mikealfare closed this Jul 6, 2023
@mikealfare mikealfare reopened this Jul 6, 2023
@mikealfare mikealfare changed the base branch from bug/redshift-connector/2_0_912-connection-error to main July 6, 2023 15:37
@mikealfare mikealfare merged commit 2ee53d3 into main Jul 6, 2023
23 checks passed
@mikealfare mikealfare deleted the bug/test_resolve_specific branch July 6, 2023 16:24
abbywh pushed a commit to abbywh/dbt-redshift that referenced this pull request Oct 11, 2023
* add new `defer_relation` argument to `mock_model`

* changie

* exclude redshift-connector==2.0.912 (dbt-labs#519)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants