Created
March 27, 2015 14:22
-
-
Save remitaffin/98f57e2fe889b8c52587 to your computer and use it in GitHub Desktop.
6 Processes without mongo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jenkins@ip-10-178-152-180:~/jobs/11_run_noodleapi_tests/workspace/jenkins$ fig run -T noodleapi bash -c "sleep 2 && python /usr/local/lib/python2.7/dist-packages/pytest.py --ds=settings.test -n 6 -s -m 'not mongotest' --maxfail 1" | |
============================= test session starts ============================== | |
platform linux2 -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4 | |
plugins: xdist, django | |
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I | |
gw0 [806] / gw1 [806] / gw2 [806] / gw3 [806] / gw4 [806] / gw5 [806] | |
scheduling tests via LoadScheduling | |
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F | |
=================================== FAILURES =================================== | |
__ ScholarshipTests.test_future_participant_info_page_success_for_superusers ___ | |
[gw1] linux2 -- Python 2.7.3 /usr/bin/python | |
self = <noodleapi.scholarships.tests.test_views.ScholarshipTests testMethod=test_future_participant_info_page_success_for_superusers> | |
def test_future_participant_info_page_success_for_superusers(self): | |
""" | |
Test that the participant info page for a future contest is | |
accessible by superusers. | |
""" | |
self.scholarship.start_date = datetime.datetime.strptime( | |
'22000101', '%Y%m%d') | |
self.scholarship.save() | |
url = reverse('scholarship_participant_info', args=[self.scholarship.slug]) | |
self.client.login(username=self.test_superuser.username, | |
password='password123') | |
> response = self.client.get(url) | |
scholarships/tests/test_views.py:232: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/local/lib/python2.7/dist-packages/django/test/client.py:473: in get | |
response = super(Client, self).get(path, data=data, **extra) | |
/usr/local/lib/python2.7/dist-packages/django/test/client.py:280: in get | |
return self.request(**r) | |
/usr/local/lib/python2.7/dist-packages/django/test/client.py:444: in request | |
six.reraise(*exc_info) | |
/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py:112: in get_response | |
response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py:69: in view | |
return self.dispatch(request, *args, **kwargs) | |
/usr/local/lib/python2.7/dist-packages/braces/views/_access.py:64: in dispatch | |
request, *args, **kwargs) | |
/usr/local/lib/python2.7/dist-packages/braces/views/_access.py:357: in dispatch | |
request, *args, **kwargs) | |
/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py:87: in dispatch | |
return handler(request, *args, **kwargs) | |
/usr/local/lib/python2.7/dist-packages/django/views/generic/detail.py:111: in get | |
context = self.get_context_data(object=self.object) | |
scholarships/views.py:67: in get_context_data | |
context['form'] = self.get_form(form_class) | |
/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py:44: in get_form | |
return form_class(**self.get_form_kwargs()) | |
scholarships/views.py:56: in get_form_kwargs | |
kwargs = super(ParticipantInfoFormView, self).get_form_kwargs() | |
/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py:51: in get_form_kwargs | |
'initial': self.get_initial(), | |
scholarships/views.py:84: in get_initial | |
if self.object.is_profile_valid(participant.profile_nice_key): | |
scholarships/models.py:202: in is_profile_valid | |
if profile_model.objects.filter(nice_key=profile_nice_key).first(): | |
/usr/local/lib/python2.7/dist-packages/mongoengine/queryset/base.py:256: in first | |
result = queryset[0] | |
/usr/local/lib/python2.7/dist-packages/mongoengine/queryset/base.py:150: in __getitem__ | |
return queryset._document._from_son(queryset._cursor[key], | |
/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py:470: in __getitem__ | |
for doc in clone: | |
/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py:814: in next | |
if len(self.__data) or self._refresh(): | |
/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py:763: in _refresh | |
self.__uuid_subtype)) | |
/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py:720: in __send_message | |
self.__uuid_subtype) | |
/usr/local/lib/python2.7/dist-packages/pymongo/helpers.py:95: in _unpack_response | |
error_object = bson.BSON(response[20:]).decode() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = "\x9c\x00\x00\x00\x02$err\x00\x83\x00\x00\x00can't open database in a read loc...uery. might otherwise indicate an internal error\x00\x10code\x007>\x00\x00\x00" | |
as_class = <type 'dict'>, tz_aware = False, uuid_subtype = 3, compile_re = True | |
def decode(self, as_class=dict, | |
tz_aware=False, uuid_subtype=OLD_UUID_SUBTYPE, compile_re=True): | |
"""Decode this BSON data. | |
The default type to use for the resultant document is | |
:class:`dict`. Any other class that supports | |
:meth:`__setitem__` can be used instead by passing it as the | |
`as_class` parameter. | |
If `tz_aware` is ``True`` (recommended), any | |
:class:`~datetime.datetime` instances returned will be | |
timezone-aware, with their timezone set to | |
:attr:`bson.tz_util.utc`. Otherwise (default), all | |
:class:`~datetime.datetime` instances will be naive (but | |
contain UTC). | |
:Parameters: | |
- `as_class` (optional): the class to use for the resulting | |
document | |
- `tz_aware` (optional): if ``True``, return timezone-aware | |
:class:`~datetime.datetime` instances | |
- `compile_re` (optional): if ``False``, don't attempt to compile | |
BSON regular expressions into Python regular expressions. Return | |
instances of | |
:class:`~bson.regex.Regex` instead. Can avoid | |
:exc:`~bson.errors.InvalidBSON` errors when receiving | |
Python-incompatible regular expressions, for example from | |
``currentOp`` | |
.. versionchanged:: 2.7 | |
Added ``compile_re`` option. | |
.. versionadded:: 1.9 | |
""" | |
(document, _) = _bson_to_dict( | |
> self, as_class, tz_aware, uuid_subtype, compile_re) | |
E TypeError: function takes exactly 4 arguments (5 given) | |
/usr/local/lib/python2.7/dist-packages/bson/__init__.py:624: TypeError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment