Skip to content

Commit

Permalink
Add new defer_relation argument to mock_model (dbt-labs#520)
Browse files Browse the repository at this point in the history
* add new `defer_relation` argument to `mock_model`

* changie

* exclude redshift-connector==2.0.912 (dbt-labs#519)
  • Loading branch information
mikealfare authored Jul 6, 2023
1 parent 768d7fc commit 0a017f1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230706-001056.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix regression in redshift-connector==2.0.912
time: 2023-07-06T00:10:56.337407-04:00
custom:
Author: mikealfare
Issue: "518"
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230706-012233.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fixed unit test that broke following dbt clone work
time: 2023-07-06T01:22:33.840137-04:00
custom:
Author: mikealfare
Issue: "518"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _core_version(plugin_version: str = _plugin_version()) -> str:
f"dbt-core~={_core_version()}",
f"dbt-postgres~={_core_version()}",
"boto3~=1.26.26",
"redshift-connector~=2.0.911",
"redshift-connector~=2.0.911,!=2.0.912",
# installed via dbt-core but referenced directly; don't pin to avoid version conflicts with dbt-core
"agate",
],
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def mock_model():
raw_sql="",
description="",
columns={},
defer_relation=None,
)


Expand Down

0 comments on commit 0a017f1

Please sign in to comment.