Skip to content

Commit d2ef335

Browse files
committed
pre-comit fixes
1 parent 5ae99bf commit d2ef335

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dbt/include/sqlserver/macros/materializations/unit_tests.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ EXEC('{{- escape_single_quotes(unittest_sql) -}}')
4444
EXEC('drop view {{test_view}};')
4545
EXEC('drop view {{expected_view}};')
4646

47-
{%- endmacro %}
47+
{%- endmacro %}

dbt/include/sqlserver/macros/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@ Restores logic to the merge statement logic like the dbt core. Merge will probab
5252
## unit tests
5353

5454
To accomidate the nested CTE situation, we create a temp view for the actual/expected and use those both in the test.
55-

tests/functional/adapter/dbt/test_unit_tests.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import pytest
2-
32
from dbt.tests.adapter.unit_testing.test_case_insensitivity import BaseUnitTestCaseInsensivity
43
from dbt.tests.adapter.unit_testing.test_invalid_input import BaseUnitTestInvalidInput
54
from dbt.tests.adapter.unit_testing.test_types import BaseUnitTestingTypes
6-
7-
from dbt.tests.util import write_file, run_dbt
5+
from dbt.tests.util import run_dbt, write_file
86

97
my_model_sql = """
108
select
@@ -29,12 +27,15 @@
2927
- {{ tested_column: {yaml_value} }}
3028
"""
3129

30+
3231
class TestUnitTestCaseInsensitivity(BaseUnitTestCaseInsensivity):
3332
pass
3433

34+
3535
class TestUnitTestInvalidInput(BaseUnitTestInvalidInput):
3636
pass
3737

38+
3839
class TestUnitTestingTypes(BaseUnitTestingTypes):
3940
@pytest.fixture
4041
def data_types(self):
@@ -71,4 +72,4 @@ def test_unit_test_data_type(self, project, data_types):
7172
try:
7273
run_dbt(["test", "--select", "my_model"])
7374
except Exception:
74-
raise AssertionError(f"unit test failed when testing model with {sql_value}")
75+
raise AssertionError(f"unit test failed when testing model with {sql_value}")

0 commit comments

Comments
 (0)