Closed
Bug 1479420
Opened 6 years ago
Closed 6 years ago
[mozhttpd] Convert tests from unittest to pytest
Categories
(Testing :: Mozbase, enhancement, P3)
Tracking
(firefox63 fixed)
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: davehunt, Assigned: raphael)
References
Details
Attachments
(1 file)
We should convert the mozhttpd tests to take advantages of pytest features such as fixtures and parameterisation. For example, any test that requires a mozhttpd server should take care of the setup and teardown in a yield fixture.
Updated•6 years ago
|
Priority: -- → P3
Reporter | ||
Updated•6 years ago
|
Assignee: nobody → rpierzina
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•6 years ago
|
||
Currently mozhttpd's test suite uses Python's unittest. Several tests don't
shut down started MozHttpd server instances, resulting in blocking test runs.
This patch resolves that problem by using pytest fixtures.
Reporter | ||
Comment 2•6 years ago
|
||
Comment on attachment 9002400 [details]
Convert mozhttpd's test suite to pytest (Bug 1479420)
Dave Hunt [:davehunt] ⌚️UTC+1 has approved the revision.
Attachment #9002400 -
Flags: review+
Pushed by dhunt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f168924d45d2
Convert mozhttpd's test suite to pytest r=davehunt
Comment 4•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•