diff options
| author | Alex Schofield <git@ajschof.me> | 2024-08-22 11:14:11 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2024-08-22 11:14:11 +0100 |
| commit | 2fa95ee69bb863dde8c31b870c08863cad84c65b (patch) | |
| tree | 72b3c58a01ead0e37cfe2fae065c68c9d8fa1a07 /tests/test_extract_lambda.py | |
| parent | 0d431a46ef74dce06ead6a792134072d605f6cff (diff) | |
| download | de-project-bentley-2fa95ee69bb863dde8c31b870c08863cad84c65b.tar.gz de-project-bentley-2fa95ee69bb863dde8c31b870c08863cad84c65b.zip | |
fix: change fixture scope to function instead of class
Diffstat (limited to 'tests/test_extract_lambda.py')
| -rw-r--r-- | tests/test_extract_lambda.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_extract_lambda.py b/tests/test_extract_lambda.py index 548ce67..c340fab 100644 --- a/tests/test_extract_lambda.py +++ b/tests/test_extract_lambda.py @@ -19,7 +19,7 @@ from src.extract_lambda import ( ) -@pytest.fixture(scope="class") +@pytest.fixture(scope="function") def mock_config(): env_vars = { "host": "abc", @@ -34,7 +34,7 @@ def mock_config(): yield mock_config -@pytest.fixture(scope="class") +@pytest.fixture(scope="function") def aws_credentials(): os.environ["AWS_ACCESS_KEY_ID"] = "testing" os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" |
