-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
tests: branches coverage in responses.py, staticfiles.py, templating.py, middleware/wsgi.py and endpoints.py
#2804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bf34abb
846eb14
4716583
877ec15
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ def __init__( | |
| async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: | ||
| request = self.context.get("request", {}) | ||
| extensions = request.get("extensions", {}) | ||
| if "http.response.debug" in extensions: | ||
| if "http.response.debug" in extensions: # pragma: no branch | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be tested without the We have some tests that don't use the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's right, I didn't think about it. Added a test to the case based on other similar tests
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I put this back. I think this is enough for the |
||
| await send( | ||
| { | ||
| "type": "http.response.debug", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.