File tree Expand file tree Collapse file tree 4 files changed +60
-61
lines changed Expand file tree Collapse file tree 4 files changed +60
-61
lines changed Original file line number Diff line number Diff line change 33import litestar
44from advanced_alchemy .exceptions import NotFoundError
55from litestar import status_codes
6- from litestar .contrib .pydantic import PydanticDTO
76from litestar .exceptions import HTTPException
7+ from litestar .plugins .pydantic import PydanticDTO
88from sqlalchemy import orm
99
1010from app import models , schemas
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ authors = [
1010license = " MIT License"
1111dependencies = [
1212 " litestar" ,
13- " advanced-alchemy==0.22.1 " ,
13+ " advanced-alchemy" ,
1414 " pydantic-settings" ,
1515 " granian" ,
1616 " modern-di-litestar" ,
Original file line number Diff line number Diff line change 55import modern_di
66import pytest
77
8- from app import __main__ as api_main
98from app import ioc
109from app .application import AppBuilder
1110
1211
1312def test_main (monkeypatch : pytest .MonkeyPatch ) -> None :
1413 monkeypatch .setattr ("granian.Granian" , mock .Mock ())
15- runpy .run_module (api_main . __name__ , run_name = "__main__" )
14+ runpy .run_module ("app.__main__" , run_name = "__main__" )
1615
1716
1817async def test_app_lifespan () -> None :
You can’t perform that action at this time.
0 commit comments