[Bug 1234291] [NEW] flask tests fail with older versions of python-werkzeug
James Page
james.page at ubuntu.com
Wed Oct 2 16:39:17 UTC 2013
Public bug reported:
nosetests tests/test_flask.py
.F........
======================================================================
FAIL: test_custom_clientside_error (test_flask.FlaskrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jamespage/src/ubuntu/cloud-archive/havana/python-wsme-0.5b5/tests/test_flask.py", line 135, in test_custom_clientside_error
assert json.loads(r.data)['faultstring'] == '403: Forbidden'
AssertionError:
-------------------- >> begin captured stdout << ---------------------
{u'debuginfo': None, u'faultcode': u'Server', u'faultstring': u"403: You're not allowed in there!"}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
wsme.api: ERROR: Server-side error: "403: You're not allowed in there!". Detail:
Traceback (most recent call last):
File "/home/jamespage/src/ubuntu/cloud-archive/havana/python-wsme-0.5b5/wsmeext/flask.py", line 65, in wrapper
result = f(*args, **kwargs)
File "/home/jamespage/src/ubuntu/cloud-archive/havana/python-wsme-0.5b5/tests/test_flask.py", line 52, in model_secret
abort(403, description="You're not allowed in there!")
File "/usr/lib/python2.7/dist-packages/werkzeug/exceptions.py", line 525, in __call__
raise self.mapping[code](*args, **kwargs)
Forbidden: 403: You're not allowed in there!
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 10 tests in 0.023s
FAILED (failures=1)
This is not an issue per-say in Saucy; however this package is a
backport target for the Ubuntu Cloud Archive and the test fails due to
different handling of the description keyword in newer versions of
python-werkzeug.
Dropping the custom description (which is then ignored in the actual
test case) resolved the issues on 13.10 and 12.04.
** Affects: python-wsme (Ubuntu)
Importance: Medium
Assignee: James Page (james-page)
Status: In Progress
** Affects: python-wsme (Ubuntu Saucy)
Importance: Medium
Assignee: James Page (james-page)
Status: In Progress
** Also affects: python-wsme (Ubuntu Saucy)
Importance: Undecided
Status: New
** Changed in: python-wsme (Ubuntu Saucy)
Status: New => Fix Released
** Changed in: python-wsme (Ubuntu Saucy)
Status: Fix Released => In Progress
** Changed in: python-wsme (Ubuntu Saucy)
Importance: Undecided => Medium
** Changed in: python-wsme (Ubuntu Saucy)
Assignee: (unassigned) => James Page (james-page)
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-wsme in Ubuntu.
https://bugs.launchpad.net/bugs/1234291
Title:
flask tests fail with older versions of python-werkzeug
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-wsme/+bug/1234291/+subscriptions
More information about the Ubuntu-server-bugs
mailing list