File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async def get_profile_page(
2828
2929 # Load user with items for statistics
3030 result = await db .execute (
31- select (User ).options (selectinload (User .items )).where (User .id == user .id ) # type: ignore[arg-type]
31+ select (User ).options (selectinload (User .items )).where (User .id == user .id ), # type: ignore[arg-type]
3232 )
3333 user_with_items = result .scalar_one ()
3434
@@ -51,8 +51,8 @@ async def update_email(
5151 # Check if email is already taken
5252 existing_user = await db .execute (
5353 select (User ).where (
54- and_ (User .email == email_data ["email" ], User .id != user .id ) # type: ignore[arg-type]
55- )
54+ and_ (User .email == email_data ["email" ], User .id != user .id ), # type: ignore[arg-type]
55+ ),
5656 )
5757 if existing_user .scalar_one_or_none ():
5858 raise HTTPException (status_code = 400 , detail = "Email already registered" )
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ def event_loop():
5151@pytest .fixture (scope = "session" )
5252async def client () -> AsyncGenerator [AsyncClient , None ]:
5353 async with AsyncClient (
54- transport = ASGITransport (app = app ), base_url = "http://test"
54+ transport = ASGITransport (app = app ),
55+ base_url = "http://test" ,
5556 ) as ac :
5657 yield ac
5758
You can’t perform that action at this time.
0 commit comments