File tree 4 files changed +60
-61
lines changed
4 files changed +60
-61
lines changed Original file line number Diff line number Diff line change 3
3
import litestar
4
4
from advanced_alchemy .exceptions import NotFoundError
5
5
from litestar import status_codes
6
- from litestar .contrib .pydantic import PydanticDTO
7
6
from litestar .exceptions import HTTPException
7
+ from litestar .plugins .pydantic import PydanticDTO
8
8
from sqlalchemy import orm
9
9
10
10
from app import models , schemas
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ authors = [
10
10
license = " MIT License"
11
11
dependencies = [
12
12
" litestar" ,
13
- " advanced-alchemy==0.22.1 " ,
13
+ " advanced-alchemy" ,
14
14
" pydantic-settings" ,
15
15
" granian" ,
16
16
" modern-di-litestar" ,
Original file line number Diff line number Diff line change 5
5
import modern_di
6
6
import pytest
7
7
8
- from app import __main__ as api_main
9
8
from app import ioc
10
9
from app .application import AppBuilder
11
10
12
11
13
12
def test_main (monkeypatch : pytest .MonkeyPatch ) -> None :
14
13
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__" )
16
15
17
16
18
17
async def test_app_lifespan () -> None :
You can’t perform that action at this time.
0 commit comments