#18973: Tests fail with login signal receiver which posts messages -----------------------------------+-------------------- Reporter: mitar | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: 1.4 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+-------------------- I have login signal receiver which posts a message:
{{{ @dispatch.receiver(auth_signals.user_logged_in) def user_login_message(sender, request, user, **kwargs): messages.success(request, _("You have been successfully logged in.")) }}} And in tests I want to create an authenticated client: {{{ self.client = client.Client() self.client.login(username=self.user_username, password=self.user_password) }}} But this fails as messages framework is not enabled at that point in the code. -- Ticket URL: <https://code.djangoproject.com/ticket/18973> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.