diff options
| author | Alex Schofield <git@ajschof.me> | 2024-08-20 00:11:37 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2024-08-20 00:11:37 +0100 |
| commit | bf7aab5cdbf2007824f0fb2bff2de5a4fa8196ba (patch) | |
| tree | 0936b79e64fc01bdd5d9063e899a264fd2a3e53b /tests | |
| parent | 7c77382fdaf236247a35f35810d66a86923156dd (diff) | |
| download | de-project-bentley-bf7aab5cdbf2007824f0fb2bff2de5a4fa8196ba.tar.gz de-project-bentley-bf7aab5cdbf2007824f0fb2bff2de5a4fa8196ba.zip | |
chore(tests): rename lambda_handler class test functions
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_extract_lambda.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_extract_lambda.py b/tests/test_extract_lambda.py index 9362a6c..b9e3a4b 100644 --- a/tests/test_extract_lambda.py +++ b/tests/test_extract_lambda.py @@ -58,7 +58,7 @@ def s3_mock_bucket(s3_client): class TestLambdaHandler: - def test_lambda_handler_files_processed_and_uploaded_successfully(self, mocker): + def test_files_processed_and_uploaded_successfully(self, mocker): mock_db = MagicMock() mock_db.run.side_effect = [ [["Fruits"]], @@ -93,7 +93,7 @@ class TestLambdaHandler: mock_process_and_upload_tables.assert_called_once_with(mock_db, {}) mock_db.close.assert_called_once() - def test_lambda_handler_no_changes_detected_no_files_uploaded(self, mocker): + def test_no_changes_detected_no_files_uploaded(self, mocker): mock_db = MagicMock() mock_db.run.side_effect = [ [["Fruits"]], @@ -125,7 +125,7 @@ class TestLambdaHandler: mock_process_and_upload_tables.assert_called_once_with(mock_db, {}) mock_db.close.assert_called_once() - def test_lambda_handler_exception_error(self, mocker): + def test_exception_error(self, mocker): with patch( "src.extract_lambda.connect_to_database", side_effect=Exception("Database connection error"), |
