From f12d00e2c7c3a4ce1b18e9b915413ee1d9cfdf18 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 11 Oct 2023 16:58:22 -0700 Subject: [PATCH] use specific schema env var --- .../functional/adapter/test_get_last_relation_modified.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/functional/adapter/test_get_last_relation_modified.py b/tests/functional/adapter/test_get_last_relation_modified.py index dab8f4560..f5e0ff826 100644 --- a/tests/functional/adapter/test_get_last_relation_modified.py +++ b/tests/functional/adapter/test_get_last_relation_modified.py @@ -10,7 +10,7 @@ freshness: warn_after: {count: 10, period: hour} error_after: {count: 1, period: day} - schema: "{{ env_var('DBT_TEST_SCHEMA_NAME_VARIABLE') }}" + schema: "{{ env_var('DBT_GET_LAST_RELATION_TEST_SCHEMA') }}" tables: - name: test_table """ @@ -23,7 +23,7 @@ def set_env_vars(self, project): project.test_schema + "_get_last_relation_modified" ) yield - del os.environ["DBT_TEST_SCHEMA_NAME_VARIABLE"] + del os.environ["DBT_GET_LAST_RELATION_TEST_SCHEMA"] @pytest.fixture(scope="class") def models(self): @@ -33,7 +33,7 @@ def models(self): def custom_schema(self, project, set_env_vars): with project.adapter.connection_named("__test"): relation = project.adapter.Relation.create( - database=project.database, schema=os.environ["DBT_TEST_SCHEMA_NAME_VARIABLE"] + database=project.database, schema=os.environ["DBT_GET_LAST_RELATION_TEST_SCHEMA"] ) project.adapter.drop_schema(relation) project.adapter.create_schema(relation) @@ -45,7 +45,7 @@ def custom_schema(self, project, set_env_vars): def test_get_last_relation_modified(self, project, set_env_vars, custom_schema): project.run_sql( - f"create table {os.environ['DBT_TEST_SCHEMA_NAME_VARIABLE']}.test_table (id integer autoincrement, name varchar(100) not null);" + f"create table {os.environ['DBT_GET_LAST_RELATION_TEST_SCHEMA']}.test_table (id integer autoincrement, name varchar(100) not null);" ) warning_or_error = False