Skip to content

Commit

Permalink
remove unnecessary code to raise coverage (Issue #608, PR #611)
Browse files Browse the repository at this point in the history
  • Loading branch information
dansan committed Aug 22, 2019
1 parent e158072 commit 7b768d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7b768d4

Please sign in to comment.