aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_load_lambda.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_load_lambda.py')
-rw-r--r--tests/test_load_lambda.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_load_lambda.py b/tests/test_load_lambda.py
index 02fd461..25a176d 100644
--- a/tests/test_load_lambda.py
+++ b/tests/test_load_lambda.py
@@ -38,7 +38,8 @@ def mock_sm_client():
class TestLambdaHandler:
- def test_lambda_handler_returns_200_and_table_name_if_uploaded(self, mocker):
+ @staticmethod
+ def test_lambda_handler_returns_200_and_table_name_if_uploaded(mocker):
mocker.patch(
"src.load_lambda.upload_dfs_to_database",
return_value={"uploaded": ["table_one", "table_two"], "not_uploaded": []},
@@ -48,7 +49,8 @@ class TestLambdaHandler:
assert "table_one" in result["body"]
assert "table_two" in result["body"]
- def test_lambda_handler_returns_200_and_table_name_if_not_uploaded(self, mocker):
+ @staticmethod
+ def test_lambda_handler_returns_200_and_table_name_if_not_uploaded(mocker):
mocker.patch(
"src.load_lambda.upload_dfs_to_database",
return_value={"uploaded": [], "not_uploaded": ["table_one"]},
@@ -57,7 +59,8 @@ class TestLambdaHandler:
assert result["statusCode"] == 200
assert "No dataframes were uploaded" in result["body"]
- def test_lambda_handler_returns_error_if_both_lists_empty(self, mocker):
+ @staticmethod
+ def test_lambda_handler_returns_error_if_both_lists_empty(mocker):
mocker.patch(
"src.load_lambda.upload_dfs_to_database",
return_value={"uploaded": [], "not_uploaded": []},
git.ajschof.me — hosted by ajschofield — powered by cgit