-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix Test Cases: test_http
for Py3.9+, test_json_response_json
for ujson 5.4.0+, and test_zero_downtime
; Test Case Type Annotations
#2504
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2504 +/- ##
=========================================
Coverage 87.342% 87.342%
=========================================
Files 69 69
Lines 5554 5554
Branches 966 966
=========================================
Hits 4851 4851
Misses 510 510
Partials 193 193 Continue to review full report at Codecov.
|
test_http
for Py3.9+test_http
for Py3.9+ and test_json_response_json
for ujson > 5.4.0
test_http
for Py3.9+ and test_json_response_json
for ujson > 5.4.0test_http
for Py3.9+ and test_json_response_json
for ujson 5.4.0+
test_http
for Py3.9+ and test_json_response_json
for ujson 5.4.0+test_http
for Py3.9+, test_json_response_json
for ujson 5.4.0+, and test_zero_downtime
test_http
for Py3.9+, test_json_response_json
for ujson 5.4.0+, and test_zero_downtime
test_http
for Py3.9+, test_json_response_json
for ujson 5.4.0+, and test_zero_downtime
; Test Case Type Annotations
@@ -75,7 +84,13 @@ def test_json_response_ujson(payload): | |||
json(payload) | |||
|
|||
|
|||
@pytest.mark.skipif(NO_UJSON is True, reason="ujson not installed") | |||
@pytest.mark.skipif( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are going need to rethink this test. But will merge it for now.
return text(f"{request.conn_info.server}") | ||
|
||
|
||
async def client(app, loop): | ||
async def client(app: Sanic, loop: AbstractEventLoop): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There really is no reason to start annotating all of these. Especially those embedded handlers.
The test case was fixed.