Skip to content

Instantly share code, notes, and snippets.

@remitaffin
Created March 27, 2015 20:33
Show Gist options
  • Save remitaffin/637dd0d9563b231bad3d to your computer and use it in GitHub Desktop.
Save remitaffin/637dd0d9563b231bad3d to your computer and use it in GitHub Desktop.
jenkins@ip-10-225-132-11:~/jobs/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 [815] / gw1 [815] / gw2 [815] / gw3 [815] / gw4 [815] / gw5 [815]
scheduling tests via LoadScheduling
................................................................................................................................................................................................................................................................................................................................................FINTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/main.py", line 84, in wrap_session
INTERNALERROR> doit(config, session)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/main.py", line 122, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/core.py", line 413, in __call__
INTERNALERROR> return self._docall(methods, kwargs)
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/core.py", line 424, in _docall
INTERNALERROR> res = mc.execute()
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/core.py", line 315, in execute
INTERNALERROR> res = method(**kwargs)
INTERNALERROR> File "<remote exec>", line 47, in pytest_runtestloop
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/execnet/gateway_base.py", line 701, in receive
INTERNALERROR> raise self._getremoteerror() or EOFError()
INTERNALERROR> EOFError
=================================== FAILURES ===================================
____________ FunctionalPreschoolProfileTests.test_retrieve_profile _____________
[gw4] linux2 -- Python 2.7.3 /usr/bin/python
self = <noodleapi.profiles.tests.test_views.FunctionalPreschoolProfileTests testMethod=test_retrieve_profile>
def test_retrieve_profile(self):
"""
Test that a Preschool profile can be retrieved.
"""
title = 'Preschool Test Profile'
url = reverse('preschool_profile_view', kwargs={'nice_key': 1, 'slug': slugify(unicode(title))})
> response = self.client.get(url)
profiles/tests/test_views.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/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/django/views/generic/base.py:87: in dispatch
return handler(request, *args, **kwargs)
profiles/views.py:139: in get
response = LegacyLandingPageRedirectView.as_view()(request)
/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/django/views/generic/base.py:87: in dispatch
return handler(request, *args, **kwargs)
search/legacy_landing_pages.py:230: in get
return super(LegacyLandingPageRedirectView, self).get(request, *args, **kwargs)
/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py:189: in get
url = self.get_redirect_url(*args, **kwargs)
search/legacy_landing_pages.py:208: in get_redirect_url
self.uri_params, self.category)
search/legacy_landing_pages.py:69: in get_url_tags_from_legacy_uri_params
category = Category.objects.get(slug=category)
/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py:151: in get
return self.get_queryset().get(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = [], args = (), kwargs = {'slug': 'preschool'}, clone = [], num = 0
def get(self, *args, **kwargs):
"""
Performs the query and returns a single object matching the given
keyword arguments.
"""
clone = self.filter(*args, **kwargs)
if self.query.can_filter():
clone = clone.order_by()
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
raise self.model.DoesNotExist(
"%s matching query does not exist." %
> self.model._meta.object_name)
E DoesNotExist: Category matching query does not exist.
/usr/local/lib/python2.7/dist-packages/django/db/models/query.py:310: DoesNotExist
!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!
==================== 1 failed, 336 passed in 86.66 seconds =====================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment