Skip to content

Commit

Permalink
Add no cover pragma on pytest.fail in tests/middleware/test_base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
  • Loading branch information
jhominal and adriangb committed Jul 2, 2022
1 parent b75a22d commit 6c33415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/middleware/test_base.py
Expand Up @@ -297,7 +297,7 @@ async def cancel_on_disconnect():
)
pytest.fail(
"http.disconnect should have been received and canceled the scope"
)
) # pragma: no cover

app = DiscardingMiddleware(downstream_app)

Expand Down

0 comments on commit 6c33415

Please sign in to comment.