Closed Bug 1479420 Opened 6 years ago Closed 6 years ago

[mozhttpd] Convert tests from unittest to pytest

Categories

(Testing :: Mozbase, enhancement, P3)

Version 2
enhancement

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.
Priority: -- → P3
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 dhunt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f168924d45d2 Convert mozhttpd's test suite to pytest r=davehunt
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Blocks: 1397417
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: