We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64ff0d5 + aba8273 commit cad9d01Copy full SHA for cad9d01
packages/smithy-aws-core/tests/unit/identity/test_environment_credentials_resolver.py
@@ -6,6 +6,14 @@
6
from smithy_core.exceptions import SmithyIdentityError
7
8
9
+@pytest.fixture(autouse=True)
10
+def clear_environment(monkeypatch: pytest.MonkeyPatch) -> None:
11
+ monkeypatch.delenv("AWS_ACCOUNT_ID", raising=False)
12
+ monkeypatch.delenv("AWS_SECRET_ACCESS_KEY", raising=False)
13
+ monkeypatch.delenv("AWS_ACCESS_KEY_ID", raising=False)
14
+ monkeypatch.delenv("AWS_SESSION_TOKEN", raising=False)
15
+
16
17
async def test_no_values_set():
18
with pytest.raises(SmithyIdentityError):
19
await EnvironmentCredentialsResolver().get_identity(properties={})
0 commit comments