Closed
Bug 1170727
Opened 10 years ago
Closed 10 years ago
Consolidate all Response classes in various tests
Categories
(Webtools Graveyard :: Air Mozilla, defect)
Webtools Graveyard
Air Mozilla
Tracking
(firefox41 affected)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | affected |
People
(Reporter: peterbe, Unassigned)
Details
(Whiteboard: [good first bug])
We have accidentally bloated to repeated definitions of the mocking utility to fake a HTTP response.
Doing a grep for `class Response` gives:
airmozilla/auth/tests/test_views.py:90:class Response(object):
airmozilla/base/tests/test_mozillians.py:249:class Response(object):
airmozilla/base/tests/test_utils.py:12:class Response(object):
airmozilla/comments/tests/test_views.py:65:class Response(object):
airmozilla/manage/tests/test_autocompeter.py:18:class Response(object):
airmozilla/suggest/tests/test_utils.py:16:class Response(object):
airmozilla/suggest/tests/test_views.py:42:class Response(object):
Some of them are slightly different so it might not just be a matter of replacing them all with a `from airmozilla.base.tests.testbase import Response`.
| Reporter | ||
Updated•10 years ago
|
Whiteboard: [good first bug]
Hi Peter I had a go at this one and submitted a pull request on github. I left some comments in there on what I did. Thanks
https://github.com/mozilla/airmozilla/pull/340
Comment 2•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/airmozilla
https://github.com/mozilla/airmozilla/commit/9682396bd7de8e9f8a158de722630b7cc272f216
fixes bug 1170727 - Removing Response class duplication in tests
https://github.com/mozilla/airmozilla/commit/5c537e4712095a0df61c49cb16d04790a9f692c6
Merge pull request #340 from a-buck/bug1170727
fixes bug 1170727 - Removing Response class duplication in tests
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•