From 2131c782726a314d2bacc2dd7a1a21634e472f26 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 13 Nov 2026 15:42:24 +0000 Subject: [PATCH] test(python-sdk): drop E2B_ACCESS_TOKEN from volume tests Co-Authored-By: mish@e2b.dev --- packages/python-sdk/tests/test_volume_client.py | 8 ++------ .../python-sdk/tests/test_volume_connection_config.py | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/python-sdk/tests/test_volume_client.py b/packages/python-sdk/tests/test_volume_client.py index d2bdab2b55..be3c6405a8 100644 --- a/packages/python-sdk/tests/test_volume_client.py +++ b/packages/python-sdk/tests/test_volume_client.py @@ -36,16 +36,12 @@ def reset_volume_transports(): reset_transport_caches() -def test_sync_client_requires_volume_token(monkeypatch): - monkeypatch.setenv("E2B_ACCESS_TOKEN", "env-access-token") - +def test_sync_client_requires_volume_token(): with pytest.raises(AuthenticationException): get_sync_api_client(VolumeConnectionConfig()) -def test_async_client_requires_volume_token(monkeypatch): - monkeypatch.setenv("E2B_ACCESS_TOKEN", "env-access-token") - +def test_async_client_requires_volume_token(): with pytest.raises(AuthenticationException): get_async_api_client(VolumeConnectionConfig()) diff --git a/packages/python-sdk/tests/test_volume_connection_config.py b/packages/python-sdk/tests/test_volume_connection_config.py index 61b54847fe..e58cc5b399 100644 --- a/packages/python-sdk/tests/test_volume_connection_config.py +++ b/packages/python-sdk/tests/test_volume_connection_config.py @@ -50,17 +50,13 @@ def test_volume_api_url_custom_domain_in_args(): assert config.api_url == "https://api.custom.com" -def test_volume_token_does_not_fall_back_to_access_token_env(monkeypatch): - monkeypatch.setenv("E2B_ACCESS_TOKEN", "env-access-token") - +def test_volume_token_defaults_to_none(): config = VolumeConnectionConfig() assert config.token is None assert config.access_token is None -def test_volume_token_in_args(monkeypatch): - monkeypatch.setenv("E2B_ACCESS_TOKEN", "env-access-token") - +def test_volume_token_in_args(): config = VolumeConnectionConfig(token="vol-token") assert config.token == "vol-token" assert config.access_token == "vol-token"