AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
test: Speed up test_gcs_file_workspace
Reinier van der Leer167fea3f1e5a
diff --git a/autogpts/autogpt/tests/unit/test_gcs_file_workspace.py b/autogpts/autogpt/tests/unit/test_gcs_file_workspace.pyindex 6372a91cd9..bfc87e0a49 100644--- a/autogpts/autogpt/tests/unit/test_gcs_file_workspace.py+++ b/autogpts/autogpt/tests/unit/test_gcs_file_workspace.py@@ -16,12 +16,12 @@ except GoogleAuthError:pytest.skip("Google Cloud Authentication not configured", allow_module_level=True)[email protected](scope="module")def gcs_bucket_name() -> str:return f"test-bucket-{str(uuid.uuid4())[:8]}"[email protected](scope="module")def gcs_workspace_uninitialized(gcs_bucket_name: str) -> GCSFileWorkspace:os.environ["WORKSPACE_STORAGE_BUCKET"] = gcs_bucket_namews_config = GCSFileWorkspaceConfiguration.from_env()@@ -49,7 +49,7 @@ def test_initialize(bucket.delete(force=True)[email protected](scope="module")def gcs_workspace(gcs_workspace_uninitialized: GCSFileWorkspace) -> GCSFileWorkspace:(gcs_workspace := gcs_workspace_uninitialized).initialize()yield gcs_workspace # type: ignore