AssertionError: 400 != 202 in test dehydrate

RESOLVED WORKSFORME

Status

Marketplace
General
RESOLVED WORKSFORME
6 years ago
6 years ago

People

(Reporter: alexis, Assigned: alexis)

Tracking

2012-11-01
x86_64
Linux
Points:
---

Details

(Assignee)

Description

6 years ago
======================================================================
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]}
Rob can help with this if you need it, or delete the test if it's not useful.
Target Milestone: --- → 2012-11-01
These are passing for me. Perhaps we should compare settings files?
(Assignee)

Comment 3

6 years ago
This was a setup glitch. Closing.
Status: NEW → ASSIGNED
(Assignee)

Updated

6 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.