Skip to content

Commit a2f7711

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent 21c2a99 commit a2f7711

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tests/test_relation_resolution.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import List, Optional
22

33
from sqlalchemy import StaticPool
4-
54
from sqlmodel import Field, Relationship, Session, SQLModel, create_engine, select
65

76

@@ -160,9 +159,7 @@ class Power(SQLModel, table=True):
160159
team = Team(name="Marble", heroes=[hero_1, hero_2])
161160

162161
engine = create_engine(
163-
"sqlite://",
164-
connect_args={"check_same_thread": False},
165-
poolclass=StaticPool
162+
"sqlite://", connect_args={"check_same_thread": False}, poolclass=StaticPool
166163
)
167164

168165
SQLModel.metadata.create_all(engine)
@@ -231,9 +228,7 @@ class Power(SQLModel, table=True):
231228
team = Team(name="Marble", heroes=[hero_1, hero_2])
232229

233230
engine = create_engine(
234-
"sqlite://",
235-
connect_args={"check_same_thread": False},
236-
poolclass=StaticPool
231+
"sqlite://", connect_args={"check_same_thread": False}, poolclass=StaticPool
237232
)
238233

239234
SQLModel.metadata.create_all(engine)
@@ -265,9 +260,7 @@ async def read_main(response_model=List[Team]):
265260
"id": 1,
266261
"team_id": 1,
267262
"name": "Deadpond",
268-
"powers": [
269-
{"id": 1, "hero_id": 1, "description": "Healing Power"}
270-
],
263+
"powers": [{"id": 1, "hero_id": 1, "description": "Healing Power"}],
271264
},
272265
{
273266
"id": 2,

0 commit comments

Comments
 (0)