Skip to content

Commit

Permalink
Remove old test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Jun 19, 2023
1 parent 0bf553f commit e8ff200
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,19 +172,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) -> None:
response = client.post("/consume_body_in_endpoint_and_handler", content=b"Hello!")
assert response.status_code == 422
Expand Down

0 comments on commit e8ff200

Please sign in to comment.