From 53c544e4a0dab93d5d0766c0ba16325a534ce69e Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Sat, 28 Dec 2024 22:05:36 +0100 Subject: [PATCH] remove test --- tests/test_exceptions.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index ff2913254..fe5da0ba6 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -1,4 +1,3 @@ -import warnings from collections.abc import Generator import pytest @@ -181,19 +180,6 @@ class CustomWebSocketException(WebSocketException): ) -def test_exception_middleware_deprecation() -> None: - # this test should be removed once the deprecation shim is removed - with pytest.warns(DeprecationWarning): - from starlette.exceptions import ExceptionMiddleware # noqa: F401 - - with warnings.catch_warnings(): - warnings.simplefilter("error") - import starlette.exceptions - - with pytest.warns(DeprecationWarning): - starlette.exceptions.ExceptionMiddleware - - def test_request_in_app_and_handler_is_the_same_object(client: TestClient) -> None: response = client.post("/consume_body_in_endpoint_and_handler", content=b"Hello!") assert response.status_code == 422