I've found the solution. The problem was that I was using the 'raven.contrib.django.middleware.Sentry404CatchMiddleware' so the Middleware was getting the 404 signals. I think that because of that the test were not receiving the signals so when in the test we were checking for 404 codes the tests were failing.
Thanks, Ruben. On 13 December 2012 20:22, xina towner <xinatow...@gmail.com> wrote: > Hi, I'm trying to use Raven in order to send messages to my CI server. > > I had some tests that pass but suddenly they are failing. Does anyone > knows why is that? > > Output: > > ====================================================================== > ERROR: test_not_individual (quests.tests.views.TaskDoTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/var/lib/jenkins/jobs/Newin/workspace/quests/tests/views.py", line > 632, in test_not_individual > resp=self.client.get(reverse('task_do', args=[self.qu_t.id])) > File > "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/django/test/client.py", > line 439, in get > response = super(Client, self).get(path, data=data, **extra) > File > "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/django/test/client.py", > line 244, in get > return self.request(**r) > File > "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/django/core/handlers/base.py", > line 188, in get_response > response = middleware_method(request, response) > File > "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/raven/contrib/django/middleware/__init__.py", > line 29, in process_response > 'id': client.get_ident(result), > File > "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/raven/base.py", > line 222, in get_ident > return '$'.join(result) > TypeError > > ---------------------------------------------------------------------- > > I checked in the link : > > > http://raven.readthedocs.org/en/latest/config/django.html#error-handling-middleware > > But I don't think that's the reason. > > -- > Thanks, > > Rubén > > -- Gràcies, Rubén -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.