feat(terminal): use project name for in-container cwd and clone directory
This commit is contained in:
@@ -5,6 +5,7 @@ import uuid
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from fastapi import HTTPException
|
||||
from fastapi.testclient import TestClient
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
@@ -165,7 +166,9 @@ class TestCreateWorkspace:
|
||||
asyncio.run(_commit())
|
||||
|
||||
with patch.object(
|
||||
WorkspaceManager, "create", side_effect=Exception("duplicate")
|
||||
WorkspaceManager,
|
||||
"create",
|
||||
side_effect=HTTPException(status_code=409, detail="duplicate"),
|
||||
):
|
||||
response = authenticated_client.post(
|
||||
f"/projects/{test_repo.project_id}/repositories/{test_repo.id}/workspaces",
|
||||
|
||||
Reference in New Issue
Block a user