From a743e02fc5d8fdb67ee42406d86aa06151b4590c Mon Sep 17 00:00:00 2001 From: Alexandr Panteleev Date: Thu, 23 Jan 2025 11:31:32 +0300 Subject: [PATCH] fix(tests): update post_mortem patch import in exception handler middleware test --- tests/unit/test_middleware/test_exception_handler_middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_middleware/test_exception_handler_middleware.py b/tests/unit/test_middleware/test_exception_handler_middleware.py index 81b402015e..8f5ddc7ad3 100644 --- a/tests/unit/test_middleware/test_exception_handler_middleware.py +++ b/tests/unit/test_middleware/test_exception_handler_middleware.py @@ -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)