#452: bibdocfile: unit test for check_bibdoc_authorization fails
-----------------------+----------------------------------------------------
Reporter: simko | Owner: skaplun
Type: defect | Status: new
Priority: blocker | Milestone: v1.0
Component: WebSubmit | Version:
Keywords: |
-----------------------+----------------------------------------------------
In between build:75 [2003f119f9ab39d38237a6be3d7239f68e1c7b46] and
build:79 [cabc52e9bcf93c099b71582119e4fb663a3ec496], a bibdocfile unit
test started to fail:
{{{
======================================================================
ERROR: bibdocfile - check_bibdoc_authorization function
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-
packages/invenio/bibdocfile_regression_tests.py", line 248, in
test_check_bibdoc_authorization
self.assertNotEqual(check_bibdoc_authorization(jekyll, 'Role:
thesesviewer')[0], 0)
File "/usr/local/lib/python2.6/dist-packages/invenio/bibdocfile.py",
line 2827, in check_bibdoc_authorization
raise ValueError, 'Unexpected authorization type %s for %s' %
(repr(auth_type), repr(auth_value))
ValueError: Unexpected authorization type 'Role' for 'thesesviewer'
}}}
--
Ticket URL: <http://invenio-software.org/ticket/452>
Invenio <http://invenio-software.org>