From 468185f89cd2853cac787c7813e646f9d3c9cfea Mon Sep 17 00:00:00 2001 From: Sashwatdas123 Date: Wed, 27 May 2026 10:39:42 +0530 Subject: [PATCH] fix: update tests for Click 8.2 compatibility and local env isolation --- tests/conftest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 022cad8..631fd70 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -38,9 +38,14 @@ def mock_function_config(): return _mock_function_config +@pytest.fixture(autouse=True) +def clear_aws_env(monkeypatch): + monkeypatch.delenv("AWS_PROFILE", raising=False) + + @pytest.fixture(scope="module") def cli_runner(): - return CliRunner(mix_stderr=False) + return CliRunner() @pytest.fixture(scope="function")