From 7a66e9c46e58e58c62ec7dfe5fccbd9d826a1bf7 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Thu, 22 Aug 2024 11:46:04 +0100 Subject: fix: convert credentials to json dict --- tests/test_extract_lambda.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/test_extract_lambda.py b/tests/test_extract_lambda.py index 9d4d63c..af3503d 100644 --- a/tests/test_extract_lambda.py +++ b/tests/test_extract_lambda.py @@ -27,13 +27,15 @@ def mock_conn(): @pytest.fixture(scope="function") def mock_config(): - env_vars = { - "host": "abc", - "port": "5432", - "user": "def", - "password": "password", - "database": "db", - } + env_vars = json.dumps( + { + "host": "abc", + "port": "5432", + "user": "def", + "password": "password", + "database": "db", + } + ) with patch( "src.extract_lambda.retrieve_secrets", return_value=env_vars ) as mock_config: -- cgit v1.2.3