Closed Bug 1479420 Opened 2 years ago Closed Last year
[mozhttpd] Convert tests from unittest to pytest
46 bytes, text/x-phabricator-request
|Details | Review|
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.
Assignee: nobody → rpierzina
Status: NEW → ASSIGNED
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.
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 email@example.com: https://hg.mozilla.org/integration/autoland/rev/f168924d45d2 Convert mozhttpd's test suite to pytest r=davehunt
You need to log in before you can comment on or make changes to this bug.