test_http load_tests is overly complex and hard to understand
Bug #597791 reported by
John A Meinel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Martin Pool |
Bug Description
Currently bzrlib/
As such the 'load_tests' function does a fair amount of gyrations to make sure that any given tests gets multiplied against the right permutations.
It would probably be easier to follow if the code was split out into separate "per_http_
Related branches
lp:~mbp/bzr/597791-http-tests
- Robert Collins (community): Approve
- Vincent Ladeuil: Approve
-
Diff: 689 lines (+326/-100)6 files modifiedNEWS (+6/-0)
bzrlib/tests/__init__.py (+14/-1)
bzrlib/tests/scenarios.py (+61/-0)
bzrlib/tests/test_http.py (+115/-89)
bzrlib/tests/test_scenarios.py (+110/-0)
doc/developers/testing.txt (+20/-10)
Changed in bzr: | |
assignee: | nobody → Martin Pool (mbp) |
importance: | Wishlist → Medium |
status: | Confirmed → In Progress |
Changed in bzr: | |
milestone: | none → 2.3b2 |
status: | In Progress → Fix Released |
To post a comment you must log in.
Also note that TestActivity and TestNoReportAct ivity differs only for a parametrization issue (the later
is parametrized in the class itself and doesn't need help from load_tests()).