Closed
Bug 794449
Opened 12 years ago
Closed 12 years ago
AssertionError: 400 != 202 in test dehydrate
Categories
(Marketplace Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
2012-11-01
People
(Reporter: alexis+bugs, Assigned: alexis+bugs)
References
Details
======================================================================
FAIL: test_dehydrate (mkt.api.tests.test_handlers.TestAppCreateHandler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/alexis/dev/github.com/zamboni/vendor/lib/python/mock.py", line 1224, in patched
return func(*args, **keywargs)
File "/home/alexis/dev/github.com/zamboni/mkt/api/tests/test_handlers.py", line 284, in test_dehydrate
eq_(res.status_code, 202)
AssertionError: 400 != 202
----------------------------------------------------------------------
Additionally, here is the content of the response:
'{"error_message": {"privacy_policy": [["en-us", "This field is required."]], "support_email": [["en-us", "This field is required."]], "name": [["en-us", "This field is required."]], "summary": [["en-us", "This field is required."]]}}'
So it seems that we're missing some fields here: "privacy-policy", "support_email", "name" and "summary".
But they're all actually sent in the test, if we have a look at this:
>>> self.base_data()
{'privacy_policy': 'wat', 'name': 'mozball', 'device_types': [1, 2, 3], 'summary': 'wat...', 'support_email': 'a@a.com', 'categories': [3L, 4L]}
Comment 1•12 years ago
|
||
Rob can help with this if you need it, or delete the test if it's not useful.
Target Milestone: --- → 2012-11-01
Comment 2•12 years ago
|
||
These are passing for me. Perhaps we should compare settings files?
Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•