Skip to content

Commit

Permalink
docs: add app.debug = True to the fixture sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
RenameMe1 authored and cofin committed Nov 17, 2024
1 parent be9e01b commit b80c55c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/usage/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ Since we would probably need to use the client in multiple places, it's better t
if TYPE_CHECKING:
from litestar import Litestar
app.debug = True
@pytest.fixture(scope="function")
def test_client() -> Iterator[TestClient[Litestar]]:
Expand All @@ -118,6 +120,8 @@ Since we would probably need to use the client in multiple places, it's better t
if TYPE_CHECKING:
from litestar import Litestar
app.debug = True
@pytest.fixture(scope="function")
async def test_client() -> AsyncIterator[AsyncTestClient[Litestar]]:
Expand Down

0 comments on commit b80c55c

Please sign in to comment.