diff options
| author | deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | 2024-08-23 10:11:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-23 10:11:40 +0000 |
| commit | 2231ea89329bd500f7371b7395f5208f7a86c20e (patch) | |
| tree | 620c86177c81d3a17c0dccf16c2a6890729333e0 /tests/test_transform_lambda.py | |
| parent | 8e20c5c0f43d0f0c4983c8895396de7f62b7c390 (diff) | |
| download | de-project-bentley-2231ea89329bd500f7371b7395f5208f7a86c20e.tar.gz de-project-bentley-2231ea89329bd500f7371b7395f5208f7a86c20e.zip | |
style: format code with Autopep8, Black and Ruff Formatter
This commit fixes the style issues introduced in 8e20c5c according to the output
from Autopep8, Black and Ruff Formatter.
Details: https://github.com/ajschofield/de-project-bentley/pull/93
Diffstat (limited to 'tests/test_transform_lambda.py')
| -rw-r--r-- | tests/test_transform_lambda.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/test_transform_lambda.py b/tests/test_transform_lambda.py index 516f83b..a91da92 100644 --- a/tests/test_transform_lambda.py +++ b/tests/test_transform_lambda.py @@ -39,7 +39,12 @@ class TestReadFromS3: ) print(result) expected_df = pd.DataFrame( - np.array([["Vegetable", "Sour", "Green", "2022-11-03 14:20:49.962"], ["Berry", "Sweet", "Red", "2022-11-03 14:20:49.962"]]), + np.array( + [ + ["Vegetable", "Sour", "Green", "2022-11-03 14:20:49.962"], + ["Berry", "Sweet", "Red", "2022-11-03 14:20:49.962"], + ] + ), columns=["Food_type", "Flavour", "Colour", "last_updated"], ) assert isinstance(result, dict) @@ -56,7 +61,12 @@ class TestReadFromS3: tables, bucket="dummy_buc", client=s3_client ) expected_foods_df = pd.DataFrame( - np.array([["Vegetable", "Sour", "Green", "2022-11-03 14:20:49.962"], ["Berry", "Sweet", "Red", "2022-11-03 14:20:49.962"]]), + np.array( + [ + ["Vegetable", "Sour", "Green", "2022-11-03 14:20:49.962"], + ["Berry", "Sweet", "Red", "2022-11-03 14:20:49.962"], + ] + ), columns=["Food_type", "Flavour", "Colour", "last_updated"], ) expected_cars_df = pd.DataFrame( @@ -72,5 +82,3 @@ class TestReadFromS3: assert list(result.keys()) == tables assert result["Foods"].eq(expected_foods_df, axis="columns").all(axis=None) assert result["Cars"].eq(expected_cars_df, axis="columns").all(axis=None) - - |
