Skip to content

Commit 75493af

Browse files
committed
add custom test schema
1 parent 8cfc387 commit 75493af

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/functional/adapter/test_schema.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33

44

55
class TestSchemaCreation:
6-
@pytest.fixture(scope="class")
7-
def project_config_update(self):
8-
return {"name": "schema_tests"}
9-
106
@pytest.fixture(scope="class")
117
def models(self):
128
return {
13-
"dummy.sql": "select 1 as id",
9+
"dummy.sql": """
10+
{{ config(schema='custom_test_schema') }}
11+
select 1 as id
12+
""",
1413
"dummy_with_auth.sql": """
15-
{{ config(schema_authorization=env_var('DBT_TEST_USER_1')) }}
14+
{{ config(schema='custom_test_schema', schema_authorization=env_var('DBT_TEST_USER_1')) }}
1615
select 1 as id
1716
""",
1817
}

0 commit comments

Comments
 (0)