aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_extract_lambda.py
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2024-08-19 16:10:22 +0000
committerGitHub <noreply@github.com>2024-08-19 16:10:22 +0000
commitb80ad74122609fca98597d9a04518df855b58aed (patch)
tree65271c2b4bc00a5c33d2af1a023a2a34e7b5dec7 /tests/test_extract_lambda.py
parent4a2306934aa902726cbca24073a518806468340f (diff)
downloadde-project-bentley-b80ad74122609fca98597d9a04518df855b58aed.tar.gz
de-project-bentley-b80ad74122609fca98597d9a04518df855b58aed.zip
style: format code with Autopep8, Black and Ruff Formatter
This commit fixes the style issues introduced in 4a23069 according to the output from Autopep8, Black and Ruff Formatter. Details: https://github.com/ajschofield/de-project-bentley/pull/64
Diffstat (limited to 'tests/test_extract_lambda.py')
-rw-r--r--tests/test_extract_lambda.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_extract_lambda.py b/tests/test_extract_lambda.py
index b1894cc..a43ae0a 100644
--- a/tests/test_extract_lambda.py
+++ b/tests/test_extract_lambda.py
@@ -55,6 +55,7 @@ def s3_mock_bucket(s3_client):
)
return bucket
+
class TestLambdaHandler:
def test_lambda_handler_files_processed_and_uploaded_successfully(self, mocker):
mock_db = MagicMock()
@@ -138,6 +139,7 @@ class TestLambdaHandler:
mock_list_existing_s3_files.assert_not_called()
mock_process_and_upload_tables.assert_not_called()
+
class TestListExistingS3Files:
def test_error_if_no_bucket(self, s3_client, caplog):
logger = logging.getLogger()
@@ -175,4 +177,4 @@ class TestConnectToDatabase:
caplog.set_level(logging.ERROR)
with pytest.raises(DBConnectionException):
connect_to_database()
- assert "Interface error" in caplog.text \ No newline at end of file
+ assert "Interface error" in caplog.text
git.ajschof.me — hosted by ajschofield — powered by cgit