소스 검색

chore: 删除 tests/ 空壳目录

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
WangXuMing 2 주 전
부모
커밋
ccf1862e3b
3개의 변경된 파일0개의 추가작업 그리고 26개의 파일을 삭제
  1. 0 26
      tests/conftest.py
  2. 0 0
      tests/integration/conftest.py
  3. 0 0
      tests/unit/conftest.py

+ 0 - 26
tests/conftest.py

@@ -1,26 +0,0 @@
-"""全局测试 fixtures。"""
-import pytest
-
-
-@pytest.fixture(scope="session")
-def config_handler():
-    """会话级:配置读取器。"""
-    from foundation.infrastructure.config.config import config_handler
-    return config_handler
-
-
-@pytest.fixture(scope="session")
-def model_handler():
-    """会话级:模型客户端管理器。"""
-    from foundation.ai.models.model_handler import model_handler
-    return model_handler
-
-
-@pytest.fixture
-async def redis_client():
-    """函数级:Redis 连接(测试后自动清理)。"""
-    from foundation.infrastructure.cache import RedisConnectionFactory
-    client = RedisConnectionFactory.get()
-    yield client
-    for key in client.keys("test:*"):
-        client.delete(key)

+ 0 - 0
tests/integration/conftest.py


+ 0 - 0
tests/unit/conftest.py