Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Remove unused premature_close server endpoint
Browse files Browse the repository at this point in the history
Last usage was removed in encode#804
  • Loading branch information
jcugat committed May 27, 2020
1 parent c453347 commit 1dc3e6a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ async def app(scope, receive, send):
assert scope["type"] == "http"
if scope["path"].startswith("/slow_response"):
await slow_response(scope, receive, send)
elif scope["path"].startswith("/premature_close"):
await premature_close(scope, receive, send)
elif scope["path"].startswith("/status"):
await status_code(scope, receive, send)
elif scope["path"].startswith("/echo_body"):
Expand Down Expand Up @@ -113,16 +111,6 @@ async def slow_response(scope, receive, send):
await send({"type": "http.response.body", "body": b"Hello, world!"})


async def premature_close(scope, receive, send):
await send(
{
"type": "http.response.start",
"status": 200,
"headers": [[b"content-type", b"text/plain"]],
}
)


async def status_code(scope, receive, send):
status_code = int(scope["path"].replace("/status/", ""))
await send(
Expand Down

0 comments on commit 1dc3e6a

Please sign in to comment.