-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional tests to ensure 1.7.0 compatibility (#487)
- Loading branch information
Showing
7 changed files
with
85 additions
and
1 deletion.
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,5 @@ | ||
from dbt.tests.adapter.utils.test_date_spine import BaseDateSpine | ||
|
||
|
||
class TestDatabricksDateSpine(BaseDateSpine): | ||
pass |
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,5 @@ | ||
from dbt.tests.adapter.utils.test_generate_series import BaseGenerateSeries | ||
|
||
|
||
class TestDatabricksGenerateSeries(BaseGenerateSeries): | ||
pass |
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,22 @@ | ||
from dbt.tests.adapter.utils.test_get_intervals_between import BaseGetIntervalsBetween | ||
from dbt.tests.adapter.utils.fixture_get_intervals_between import ( | ||
models__test_get_intervals_between_yml, | ||
) | ||
import pytest | ||
|
||
|
||
class TestDatabricksGetIntervalBetween(BaseGetIntervalsBetween): | ||
model_sql = """ | ||
SELECT | ||
{{ get_intervals_between('"2023-09-01"', '"2023-09-12"', "day") }} as intervals, | ||
11 as expected | ||
""" | ||
|
||
@pytest.fixture(scope="class") | ||
def models(self): | ||
return { | ||
"test_get_intervals_between.yml": models__test_get_intervals_between_yml, | ||
"test_get_intervals_between.sql": self.interpolate_macro_namespace( | ||
self.model_sql, "get_intervals_between" | ||
), | ||
} |
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,5 @@ | ||
from dbt.tests.adapter.utils.test_get_powers_of_two import BaseGetPowersOfTwo | ||
|
||
|
||
class TestDatabricksGetPowersOfTwo(BaseGetPowersOfTwo): | ||
pass |
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,9 @@ | ||
from dbt.tests.adapter.dbt_show.test_dbt_show import BaseShowLimit, BaseShowSqlHeader | ||
|
||
|
||
class TestShowLimitDatabricks(BaseShowLimit): | ||
pass | ||
|
||
|
||
class TestShowSqlHeaderDatabricks(BaseShowSqlHeader): | ||
pass |
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,34 @@ | ||
from dbt.tests.adapter.store_test_failures_tests.basic import ( | ||
StoreTestFailuresAsInteractions, | ||
StoreTestFailuresAsProjectLevelOff, | ||
StoreTestFailuresAsProjectLevelView, | ||
StoreTestFailuresAsProjectLevelEphemeral, | ||
StoreTestFailuresAsGeneric, | ||
StoreTestFailuresAsExceptions, | ||
) | ||
|
||
|
||
class TestDatabricksStoreTestFailuresAsInteractions(StoreTestFailuresAsInteractions): | ||
pass | ||
|
||
|
||
class TestDatabricksStoreTestFailuresAsProjectLevelOff(StoreTestFailuresAsProjectLevelOff): | ||
pass | ||
|
||
|
||
class TestDatabricksStoreTestFailuresAsProjectLevelView(StoreTestFailuresAsProjectLevelView): | ||
pass | ||
|
||
|
||
class TestDatabricksStoreTestFailuresAsProjectLevelEphemeral( | ||
StoreTestFailuresAsProjectLevelEphemeral | ||
): | ||
pass | ||
|
||
|
||
class TestDatabricksStoreTestFailuresAsGeneric(StoreTestFailuresAsGeneric): | ||
pass | ||
|
||
|
||
class TestDatabricksStoreTestFailuresAsExceptions(StoreTestFailuresAsExceptions): | ||
pass |