-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add unit tests for wrapper handlers in tools/serve #14004
Conversation
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.
This is amazing, thanks!
Only a couple of minor style fixes to request.
@@ -8,8 +8,11 @@ | |||
from six.moves.urllib.error import HTTPError | |||
|
|||
wptserve = pytest.importorskip("wptserve") | |||
from .base import TestUsingServer, TestUsingH2Server, doc_root | |||
from .base import TestUsingServer, TestUsingH2Server, \ |
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.
Don't use continuation characters, please.
@@ -388,5 +391,64 @@ def test_requesting_multiple_resources(self): | |||
assert resp.read() == '' | |||
|
|||
|
|||
class TestWorkersHandler(TestWrapperHandlerUsingServer): | |||
|
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.
No blank line after the class definition.
Travis unittest failures:
and
|
41f5197
to
f4bd28a
Compare
Add unit tests for all kinds of wrapper handlers in tools/serve/serve.py. See web-platform-tests#12452
* Fix the import error * Improve the code style
See https://travis-ci.org/web-platform-tests/wpt/jobs/453768016; unittests still failing under Python3 |
Read and write files in binary mode so the unit tests can pass in Python3 environment.
@jgraham , thanks for your comments. I improved the code style. @sideshowbarker , the import error and other errors have been fixed. |
Yeah, c4401e4 is all green now, so when the review is approved, this should be ready to merge to master |
Add unit tests for all kinds of wrapper handlers in tools/serve/serve.py.
See #12452