Skip to content

Commit

Permalink
move tests out of adapter zone
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Sep 26, 2023
1 parent 1368dcd commit 8ac4bb3
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"""


class BaseModelContractNumericNoPrecision:
class TestModelContractNumericNoPrecision:
@pytest.fixture(scope="class")
def models(self):
return {
Expand All @@ -49,7 +49,7 @@ def test_contracted_numeric_without_precision(self, project):
assert expected_msg in logs


class BaseModelContractNumericPrecision:
class TestModelContractNumericPrecision:
@pytest.fixture(scope="class")
def models(self):
return {
Expand All @@ -61,11 +61,3 @@ def test_contracted_numeric_with_precision(self, project):
expected_msg = "Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: ['non_integer']"
_, logs = run_dbt_and_capture(["run"], expect_pass=True)
assert expected_msg not in logs


class TestPostgresModelContractNumericNoPrecision(BaseModelContractNumericNoPrecision):
pass


class TestPostgresModelContractNumericPrecision(BaseModelContractNumericPrecision):
pass

0 comments on commit 8ac4bb3

Please sign in to comment.