From 2fa95ee69bb863dde8c31b870c08863cad84c65b Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Thu, 22 Aug 2024 11:14:11 +0100 Subject: fix: change fixture scope to function instead of class --- tests/test_extract_lambda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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" -- cgit v1.2.3