数据库创建
This commit is contained in:
8
tests/test_database.py
Normal file
8
tests/test_database.py
Normal 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()
|
||||
Reference in New Issue
Block a user