Skip to content

Commit 84120e8

Browse files
committed
update packages and fix warnings in tests
1 parent dc610b7 commit 84120e8

File tree

4 files changed

+60
-61
lines changed

4 files changed

+60
-61
lines changed

app/api/decks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import litestar
44
from advanced_alchemy.exceptions import NotFoundError
55
from litestar import status_codes
6-
from litestar.contrib.pydantic import PydanticDTO
76
from litestar.exceptions import HTTPException
7+
from litestar.plugins.pydantic import PydanticDTO
88
from sqlalchemy import orm
99

1010
from app import models, schemas

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
license = "MIT License"
1111
dependencies = [
1212
"litestar",
13-
"advanced-alchemy==0.22.1",
13+
"advanced-alchemy",
1414
"pydantic-settings",
1515
"granian",
1616
"modern-di-litestar",

tests/test_main.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
import modern_di
66
import pytest
77

8-
from app import __main__ as api_main
98
from app import ioc
109
from app.application import AppBuilder
1110

1211

1312
def 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

1817
async def test_app_lifespan() -> None:

0 commit comments

Comments
 (0)