Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 20, 2024
1 parent c8cda77 commit 0074b48
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions tests/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ def validate(self) -> None:
for column in table_schema.columns:
assert column.name in expected_types, f"Column {column.name} not found in expected types"
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501
column.type,
expected_types[column.name],
), f"Column {column.name} not of expected type {expected_types[column.name]}"


class SnowflakeTargetCamelcaseComplexSchema(TargetCamelcaseComplexSchema):
Expand Down Expand Up @@ -92,8 +93,9 @@ def validate(self) -> None:
for column in table_schema.columns:
assert column.name in expected_types, f"Column {column.name} not found in expected types"
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501
column.type,
expected_types[column.name],
), f"Column {column.name} not of expected type {expected_types[column.name]}"


class SnowflakeTargetDuplicateRecords(TargetDuplicateRecords):
Expand Down Expand Up @@ -129,8 +131,9 @@ def validate(self) -> None:
for column in table_schema.columns:
assert column.name in expected_types, f"Column {column.name} not found in expected types"
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501
column.type,
expected_types[column.name],
), f"Column {column.name} not of expected type {expected_types[column.name]}"


class SnowflakeTargetCamelcaseTest(TargetCamelcaseTest):
Expand Down Expand Up @@ -161,8 +164,9 @@ def validate(self) -> None:
for column in table_schema.columns:
assert column.name in expected_types, f"Column {column.name} not found in expected types"
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501
column.type,
expected_types[column.name],
), f"Column {column.name} not of expected type {expected_types[column.name]}"


class SnowflakeTargetEncodedStringData(TargetEncodedStringData):
Expand Down Expand Up @@ -255,8 +259,9 @@ def validate(self) -> None:
for column in table_schema.columns:
assert column.name in expected_types, f"Column {column.name} not found in expected types"
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501
column.type,
expected_types[column.name],
), f"Column {column.name} not of expected type {expected_types[column.name]}"


class SnowflakeTargetSchemaUpdates(TargetSchemaUpdates):
Expand Down Expand Up @@ -295,8 +300,9 @@ def validate(self) -> None:
for column in table_schema.columns:
assert column.name in expected_types, f"Column {column.name} not found in expected types"
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501
column.type,
expected_types[column.name],
), f"Column {column.name} not of expected type {expected_types[column.name]}"


class SnowflakeTargetReservedWords(TargetFileTestTemplate):
Expand Down Expand Up @@ -475,8 +481,9 @@ def validate(self) -> None:
for column in table_schema.columns:
assert column.name in expected_types, f"Column {column.name} not found in expected types"
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501
column.type,
expected_types[column.name],
), f"Column {column.name} not of expected type {expected_types[column.name]}"


class SnowflakeTargetColumnOrderMismatch(TargetFileTestTemplate):
Expand Down

0 comments on commit 0074b48

Please sign in to comment.