Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Aug 30, 2024
1 parent bd4c2b0 commit 2ed77f3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions tests/functional/adapter/unit_testing/test_unit_testing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
from dbt.tests.adapter.unit_testing.test_case_insensitivity import (
BaseUnitTestCaseInsensivity,
)
from dbt.tests.adapter.unit_testing.test_invalid_input import (
BaseUnitTestInvalidInput,
)
from dbt.tests.adapter.unit_testing.test_types import BaseUnitTestingTypes
from pytest import fixture


class TestFireboltUnitTestCaseInsensitivity(BaseUnitTestCaseInsensivity):
pass


class TestFireboltUnitTestInvalidInput(BaseUnitTestInvalidInput):
pass


class TestFireboltUnitTestingTypes(BaseUnitTestingTypes):
@fixture
def data_types(self):
# sql_value, yaml_value
return [
["1", "1"],
["'1'", "1"],
["true", "true"],
["DATE '2020-01-02'", "2020-01-02"],
["TIMESTAMP '2013-11-03 00:00:00'", "2013-11-03 00:00:00"],
["TIMESTAMPTZ '2013-11-03 00:00:00-0'", "2013-11-03 00:00:00-0"],
["'1'::numeric", "1"],
[
"""'{"bar": "baz", "balance": 7.77, "active": false}'""", # json
"""'{"bar": "baz", "balance": 7.77, "active": false}'""",
],
["ARRAY['a','b','c']", """'{"a", "b", "c"}'"""],
["ARRAY[1,2,3]", """'{1, 2, 3}'"""],
]

0 comments on commit 2ed77f3

Please sign in to comment.