From 0a017f1f41c58d2c801cd0e36c049438dab83daf Mon Sep 17 00:00:00 2001 From: Mike Alfare <13974384+mikealfare@users.noreply.github.com> Date: Thu, 6 Jul 2023 12:24:48 -0400 Subject: [PATCH] Add new `defer_relation` argument to `mock_model` (#520) * add new `defer_relation` argument to `mock_model` * changie * exclude redshift-connector==2.0.912 (#519) --- .changes/unreleased/Fixes-20230706-001056.yaml | 6 ++++++ .changes/unreleased/Fixes-20230706-012233.yaml | 6 ++++++ setup.py | 2 +- tests/unit/test_context.py | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Fixes-20230706-001056.yaml create mode 100644 .changes/unreleased/Fixes-20230706-012233.yaml diff --git a/.changes/unreleased/Fixes-20230706-001056.yaml b/.changes/unreleased/Fixes-20230706-001056.yaml new file mode 100644 index 000000000..79b205caf --- /dev/null +++ b/.changes/unreleased/Fixes-20230706-001056.yaml @@ -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" diff --git a/.changes/unreleased/Fixes-20230706-012233.yaml b/.changes/unreleased/Fixes-20230706-012233.yaml new file mode 100644 index 000000000..bc28b2eec --- /dev/null +++ b/.changes/unreleased/Fixes-20230706-012233.yaml @@ -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" diff --git a/setup.py b/setup.py index 56d4fa101..3dd9e7913 100644 --- a/setup.py +++ b/setup.py @@ -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", ], diff --git a/tests/unit/test_context.py b/tests/unit/test_context.py index 542387c0d..31c436d82 100644 --- a/tests/unit/test_context.py +++ b/tests/unit/test_context.py @@ -147,6 +147,7 @@ def mock_model(): raw_sql="", description="", columns={}, + defer_relation=None, )