From 7b768d4057e11097d6ba5a6a9f5a52d26269cf59 Mon Sep 17 00:00:00 2001 From: Daniel Troeder Date: Thu, 22 Aug 2019 18:10:56 +0200 Subject: [PATCH] remove unnecessary code to raise coverage (Issue #608, PR #611) --- tests/test_requests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_requests.py b/tests/test_requests.py index 28634c1b35..9713014d97 100644 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -290,9 +290,8 @@ def test_request_url_for(): app = Starlette() @app.route("/users/{name}") - async def func_users(request): - name = request.path_params["name"] - return Response(name, media_type="text/plain") + async def func_users(request): # pragma: no cover + ... @app.route("/test") async def func_url_for_test(request: Request):