-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08625fe
commit 0a3d3ba
Showing
2 changed files
with
32 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,29 @@ | ||
import pytest | ||
from dbt.tests.adapter.dbt_show.test_dbt_show import BaseShowSqlHeader, BaseShowLimit | ||
|
||
|
||
my_model_sql_header_sql = """ | ||
{{ | ||
config( | ||
materialized = "table" | ||
) | ||
}} | ||
{% call set_sql_header(config) %} | ||
CREATE TEMPORARY TABLE _variables AS ( | ||
SELECT '89' as my_variable | ||
); | ||
{% endcall %} | ||
SELECT my_variable from _variables | ||
""" | ||
|
||
|
||
class TestRedshiftShowLimit(BaseShowLimit): | ||
pass | ||
|
||
|
||
class TestRedshiftShowSqlHeader(BaseShowSqlHeader): | ||
@pytest.fixture(scope="class") | ||
def models(self): | ||
return { | ||
"sql_header.sql": my_model_sql_header_sql, | ||
} |