diff options
| author | Alex Schofield <git@ajschof.me> | 2024-08-22 11:46:04 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2024-08-22 11:46:04 +0100 |
| commit | 7a66e9c46e58e58c62ec7dfe5fccbd9d826a1bf7 (patch) | |
| tree | 259b6465e384bce58dad4be3f09eab51eb806e7a /tests | |
| parent | 60459fbd98156849c399747c20635ff92d6718f8 (diff) | |
| download | de-project-bentley-7a66e9c46e58e58c62ec7dfe5fccbd9d826a1bf7.tar.gz de-project-bentley-7a66e9c46e58e58c62ec7dfe5fccbd9d826a1bf7.zip | |
fix: convert credentials to json dict
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_extract_lambda.py | 16 |
1 files changed, 9 insertions, 7 deletions
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: |
