Skip to content

Commit

Permalink
fix(tests): update post_mortem patch import in exception handler midd…
Browse files Browse the repository at this point in the history
…leware test
  • Loading branch information
Alexandr Panteleev committed Jan 23, 2025
1 parent a355607 commit a743e02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def test_pdb_on_exception(mocker: MockerFixture) -> None:
def handler() -> None:
raise ValueError("Test debug exception")

mock_post_mortem = mocker.patch("litestar.middleware._internal.exceptions.middleware.pdb.post_mortem")
mock_post_mortem = mocker.patch("litestar.app.pdb.post_mortem")

app = Litestar([handler], pdb_on_exception=True)

Expand Down

0 comments on commit a743e02

Please sign in to comment.