测试不用sqlite,改为postgresql
This commit is contained in:
@@ -5,7 +5,7 @@ from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession
|
||||
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")
|
||||
def event_loop():
|
||||
|
||||
Reference in New Issue
Block a user