forked from tglunde/dbt-exasol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tglunde#80 Disable view comments outside of DDL (tglunde#82)
* tglunde#80 disable comments on views outside DDL * tglunde#80 relation comment * tglunde#80 whitespace control * added view test with persist docs enabled --------- Co-authored-by: Torsten Glunde <torsten.glunde@alligator-company.com>
- Loading branch information
1 parent
be1e11f
commit 560d12b
Showing
2 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from dbt.tests.adapter.basic.test_generic_tests import BaseGenericTests | ||
import pytest | ||
|
||
from dbt.tests.adapter.basic.files import ( | ||
base_table_sql, | ||
schema_base_yml, | ||
generic_test_view_yml, | ||
generic_test_table_yml, | ||
) | ||
|
||
class TestExasolViewComment(BaseGenericTests): | ||
@pytest.fixture(scope="class") | ||
def models(self): | ||
return { | ||
"view_model.sql": """ | ||
{{config( | ||
materialized='view', | ||
persist_docs={"relation": true, "columns": true } | ||
)}} | ||
select * from {{ source('raw', 'seed') }} | ||
""", | ||
"table_model.sql": base_table_sql, | ||
"schema.yml": schema_base_yml, | ||
"schema_view.yml": generic_test_view_yml, | ||
"schema_table.yml": generic_test_table_yml, | ||
} |