🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

This commit is contained in:
pre-commit-ci[bot]
2025-06-20 12:49:14 +00:00
parent 009b161bb7
commit 80e495071a
66 changed files with 842 additions and 698 deletions

View File

@ -5,10 +5,9 @@ from typing import Any
from unittest.mock import patch
import pytest
from sqlmodel import create_engine, SQLModel
from ...conftest import get_testing_print_function, needs_py310, PrintMock
from sqlmodel import create_engine
from ...conftest import PrintMock, get_testing_print_function, needs_py310
expected_calls_tutorial007 = [
[{"id": 5, "name": "Black Lion", "secret_name": "Trevor Challa", "age": 35}],
@ -38,7 +37,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