mirror of
https://github.com/fastapi/sqlmodel.git
synced 2025-08-18 04:10:40 +08:00
Jules was unable to complete the task in time. Please review the work done so far and provide feedback for Jules to continue.
This commit is contained in:
@ -5,9 +5,10 @@ from typing import Any
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
from sqlmodel import create_engine
|
||||
from sqlmodel import create_engine, SQLModel
|
||||
|
||||
from ...conftest import get_testing_print_function, needs_py310, PrintMock
|
||||
|
||||
from ...conftest import PrintMock, get_testing_print_function, needs_py310
|
||||
|
||||
expected_calls_tutorial009 = [
|
||||
[{"name": "Tarantula", "secret_name": "Natalia Roman-on", "age": 32, "id": 4}],
|
||||
@ -45,7 +46,7 @@ def module_fixture(request: pytest.FixtureRequest, clear_sqlmodel: Any):
|
||||
if hasattr(mod, "create_db_and_tables") and callable(mod.create_db_and_tables):
|
||||
pass
|
||||
elif hasattr(mod, "SQLModel") and hasattr(mod.SQLModel, "metadata"):
|
||||
mod.SQLModel.metadata.create_all(mod.engine)
|
||||
mod.SQLModel.metadata.create_all(mod.engine)
|
||||
|
||||
return mod
|
||||
|
||||
|
Reference in New Issue
Block a user