refactor(domain): 将领域模型移动到common模块
重构项目结构,将分散在各模块的领域模型统一移动到manage-common模块 更新相关依赖和引用路径 调整docker-compose配置和测试标记 添加新的Playwright测试配置 优化Dockerfile构建过程
This commit is contained in:
@@ -9,6 +9,7 @@ from playwright.async_api import async_playwright, Browser, BrowserContext, Page
|
||||
from httpx import AsyncClient
|
||||
|
||||
from config.settings import settings
|
||||
from utils.test_data_manager import TestDataManager
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
@@ -216,3 +217,11 @@ async def cleanup_file(authenticated_client: AsyncClient):
|
||||
await authenticated_client.delete(f"/api/files/{file_id}")
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def test_data_manager(authenticated_client: AsyncClient) -> AsyncGenerator[TestDataManager, None]:
|
||||
"""测试数据管理器fixture"""
|
||||
manager = TestDataManager(authenticated_client)
|
||||
yield manager
|
||||
await manager.cleanup_all()
|
||||
|
||||
Reference in New Issue
Block a user