Skip to content

Commit

Permalink
refactor: function scope is already the default for fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Nov 5, 2024
1 parent 51c1f7b commit 6f08811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
from server import app


@fixture
@fixture()
def anyio_backend() -> tuple[Literal['asyncio', 'trio'], dict[str, bool]]:
return 'asyncio', {'use_uvloop': True}


@fixture(scope='function')
@fixture()
async def client() -> AsyncIterator[AsyncTestClient[Litestar]]:
async with AsyncTestClient(app=app()) as client:
yield client

0 comments on commit 6f08811

Please sign in to comment.