Closed Bug 1479420 Opened 2 years ago Closed Last year

[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

(Blocks 1 open bug)

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
https://hg.mozilla.org/mozilla-central/rev/f168924d45d2
Status: ASSIGNED → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.