From c899533601bbd536cbf426098b01414abedb060e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:22:04 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/core.py | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/tests/core.py b/tests/core.py index 44f721d..330926f 100644 --- a/tests/core.py +++ b/tests/core.py @@ -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): @@ -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): @@ -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): @@ -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): @@ -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): @@ -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): @@ -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):