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 393f717 commit c899533
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions tests/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501


class SnowflakeTargetCamelcaseComplexSchema(TargetCamelcaseComplexSchema):
Expand Down Expand Up @@ -88,7 +90,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
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501


class SnowflakeTargetDuplicateRecords(TargetDuplicateRecords):
Expand Down Expand Up @@ -123,7 +127,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
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501


class SnowflakeTargetCamelcaseTest(TargetCamelcaseTest):
Expand Down Expand Up @@ -153,7 +159,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
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501


class SnowflakeTargetEncodedStringData(TargetEncodedStringData):
Expand Down Expand Up @@ -245,7 +253,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
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501


class SnowflakeTargetSchemaUpdates(TargetSchemaUpdates):
Expand Down Expand Up @@ -283,7 +293,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
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501


class SnowflakeTargetReservedWords(TargetFileTestTemplate):
Expand Down Expand Up @@ -459,7 +471,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
assert isinstance(
column.type, expected_types[column.name]
), f"Column {column.name} not of expected type {expected_types[column.name]}" # noqa: E501


class SnowflakeTargetColumnOrderMismatch(TargetFileTestTemplate):
Expand Down

0 comments on commit c899533

Please sign in to comment.