测试不用sqlite,改为postgresql

This commit is contained in:
mark.tian
2025-12-03 12:26:41 +08:00
parent f3561c5605
commit 3b3b44889b

View File

@@ -5,7 +5,7 @@ from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession
from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import sessionmaker
# 测试数据库配置 # 测试数据库配置
TEST_DATABASE_URL = "sqlite+aiosqlite:///./test.db" TEST_DATABASE_URL = "postgresql+asyncpg://postgres:12345@localhost:5432/test_ai_talk_callback"
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
def event_loop(): def event_loop():