数据库创建

This commit is contained in:
2025-06-22 19:26:23 +08:00
parent 6094d8219e
commit f6825b670f
31 changed files with 1494 additions and 270 deletions

8
tests/test_database.py Normal file
View File

@@ -0,0 +1,8 @@
from models import database
import pytest
@pytest.mark.asyncio
async def test_initialize_db():
"""Fixture to initialize the database before tests."""
await database.init_db()