Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#12368 closed (fixed)

django.contrib.messages tests fail with mysql backend - ordering issues

Reported by: tobias Owned by: kmtracey
Component: Contrib apps Version: master
Severity: Keywords: messages
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

======================================================================
FAIL: test_middleware_disabled_auth_user (django.contrib.messages.tests.cookie.CookieTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tobias/caktus/django-trunk-tobiasmcnulty/django/contrib/messages/tests/base.py", line 222, in test_middleware_disabled_auth_user
    data['messages'])
AssertionError: [u'Test message 9', u'Test message 8', u'Test message 7', u'Test message 6', u'Test message 5', u'Test message 4', u'Test message 3', u'Test message 2', u'Test message 1', u'Test message 0'] != ['Test message 0', 'Test message 1', 'Test message 2', 'Test message 3', 'Test message 4', 'Test message 5', 'Test message 6', 'Test message 7', 'Test message 8', 'Test message 9']

======================================================================
FAIL: test_middleware_disabled_auth_user (django.contrib.messages.tests.fallback.FallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tobias/caktus/django-trunk-tobiasmcnulty/django/contrib/messages/tests/base.py", line 222, in test_middleware_disabled_auth_user
    data['messages'])
AssertionError: [u'Test message 9', u'Test message 8', u'Test message 7', u'Test message 6', u'Test message 5', u'Test message 4', u'Test message 3', u'Test message 2', u'Test message 1', u'Test message 0'] != ['Test message 0', 'Test message 1', 'Test message 2', 'Test message 3', 'Test message 4', 'Test message 5', 'Test message 6', 'Test message 7', 'Test message 8', 'Test message 9']

======================================================================
FAIL: test_middleware_disabled_auth_user (django.contrib.messages.tests.user_messages.LegacyFallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tobias/caktus/django-trunk-tobiasmcnulty/django/contrib/messages/tests/base.py", line 222, in test_middleware_disabled_auth_user
    data['messages'])
AssertionError: [u'Test message 9', u'Test message 8', u'Test message 7', u'Test message 6', u'Test message 5', u'Test message 4', u'Test message 3', u'Test message 2', u'Test message 1', u'Test message 0'] != ['Test message 0', 'Test message 1', 'Test message 2', 'Test message 3', 'Test message 4', 'Test message 5', 'Test message 6', 'Test message 7', 'Test message 8', 'Test message 9']

======================================================================
FAIL: test_middleware_disabled_auth_user (django.contrib.messages.tests.session.SessionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tobias/caktus/django-trunk-tobiasmcnulty/django/contrib/messages/tests/base.py", line 222, in test_middleware_disabled_auth_user
    data['messages'])
AssertionError: [u'Test message 9', u'Test message 8', u'Test message 7', u'Test message 6', u'Test message 5', u'Test message 4', u'Test message 3', u'Test message 2', u'Test message 1', u'Test message 0'] != ['Test message 0', 'Test message 1', 'Test message 2', 'Test message 3', 'Test message 4', 'Test message 5', 'Test message 6', 'Test message 7', 'Test message 8', 'Test message 9']

----------------------------------------------------------------------
Ran 103 tests in 17.659s

FAILED (failures=4)

Attachments (1)

messages_mysql_tests_fix.diff (799 bytes) - added by tobias 4 years ago.
fix test

Download all attachments as: .zip

Change History (6)

comment:1 Changed 4 years ago by tobias

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Status changed from new to assigned

Changed 4 years ago by tobias

fix test

comment:2 Changed 4 years ago by tobias

  • Has patch set
  • Triage Stage changed from Unreviewed to Ready for checkin

This is a minor fix to a test only (no code changes); marking RFC

comment:3 Changed 4 years ago by tobias

  • Owner changed from tobias to kmtracey
  • Status changed from assigned to new

comment:4 Changed 4 years ago by kmtracey

  • Resolution set to fixed
  • Status changed from new to closed

(In [11847]) Fixed #12368: Fixed order-dependent messages test that was failing on MySQL/MyISAM. Thanks Tobias.

comment:5 Changed 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.