From 8125ef92790e05913d12be403fad30d2f7eb3ff9 Mon Sep 17 00:00:00 2001 From: Mila Page Date: Mon, 26 Feb 2024 23:01:10 -0800 Subject: [PATCH] Fix that import. --- pyproject.toml | 6 +++--- tests/unit/test_renamed_relations.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bc39cb8a..b1a1964a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ path = "dbt/adapters/postgres/__version__.py" [tool.hatch.envs.default] dependencies = [ - "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git", + "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@ADAP-108/fix_renamed_relations_for_1.8", "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", ] @@ -89,7 +89,7 @@ dependencies = [ ] extra-dependencies = [ # TODO: remove `dbt-core` dependencies from unit tests - "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git", + "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@ADAP-108/fix_renamed_relations_for_1.8", "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", "dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core", ] @@ -100,7 +100,7 @@ all = "python -m pytest {args:tests/unit}" template = "unit-tests" extra-dependencies = [ # TODO: remove `dbt-core` dependencies from integration tests - "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@ddc5d9de4c20211fefbe150b26711273edec8323", + "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@ADAP-108/fix_renamed_relations_for_1.8", "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", "dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core", "dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter", diff --git a/tests/unit/test_renamed_relations.py b/tests/unit/test_renamed_relations.py index 8389ce05..01876b5b 100644 --- a/tests/unit/test_renamed_relations.py +++ b/tests/unit/test_renamed_relations.py @@ -1,9 +1,9 @@ -from dbt.adapters.redshift.relation import RedshiftRelation +from dbt.adapters.postgres.relation import PostgresRelation from dbt.adapters.contracts.relation import RelationType def test_renameable_relation(): - relation = RedshiftRelation.create( + relation = PostgresRelation.create( database="my_db", schema="my_schema", identifier="my_table",