Skip to content

Commit

Permalink
Remove asgi-lifespan dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimon committed Mar 8, 2024
1 parent d98f653 commit 24b964d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
16 changes: 1 addition & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ pre-commit = "^3.5.0"
ruff = "^0.1.3"

[tool.poetry.group.test.dependencies]
asgi-lifespan = "^2.1.0"
pytest = "^7.4.3"
pytest-asyncio = "^0.21.1"
pytest-cov = "^4.1.0"
Expand Down
5 changes: 2 additions & 3 deletions tests/test_litestar.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ def identify_consumer(request: Request) -> Optional[str]:

@pytest.fixture(scope="module")
async def client(app: Litestar) -> TestClient:
from asgi_lifespan import LifespanManager
from litestar.testing import TestClient

async with LifespanManager(app): # type: ignore[arg-type]
return TestClient(app)
with TestClient(app) as client:
return client


def test_middleware_requests_ok(client: TestClient, mocker: MockerFixture):
Expand Down

0 comments on commit 24b964d

Please sign in to comment.