Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Dec 28, 2024
1 parent 37981d1 commit 53c544e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/test_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import warnings
from collections.abc import Generator

import pytest
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 53c544e

Please sign in to comment.