-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reuse core fixture for dbt show sql header test
- Loading branch information
1 parent
c61c052
commit 669e6df
Showing
1 changed file
with
1 addition
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,9 @@ | ||
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) %} | ||
SET MY_VARIABLE='test'; | ||
{% endcall %} | ||
SELECT $MY_VARIABLE as column_name | ||
""" | ||
|
||
|
||
class TestBigQueryShowLimit(BaseShowLimit): | ||
pass | ||
|
||
|
||
class TestBigQueryShowSqlHeader(BaseShowSqlHeader): | ||
@pytest.fixture(scope="class") | ||
def models(self): | ||
return { | ||
"sql_header.sql": my_model_sql_header_sql, | ||
} | ||
pass |