Test fails when setting MESSAGE_TAGS

41 views
Skip to first unread message

Manuel Strehl

unread,
Aug 3, 2011, 3:56:08 AM8/3/11
to Django developers
Hi,

in a fresh Django 1.3 project (directly after django_admin
startproject) I set this in the settings.py:

MESSAGE_TAGS = {
40: "ui-state-error", # ERROR
30: "ui-state-highlight", # WARNING
20: "ui-state-info", # INFO
25: "ui-state-success", # SUCCESS
}

which causes a test failure in
django.contrib.messages.tests.cookie.CookieTest.test_tags.

http://pastebin.com/DSWdgCEf

As far as I can see, I did everything the way the docs say, so is
there a possibility to make the test pass?

I haven't found a corresponding bug in the issue tracker.

Cheers,

Chris Beaven

unread,
Aug 4, 2011, 9:30:37 PM8/4/11
to django-d...@googlegroups.com
It's a bug, open a ticket.
Reply all
Reply to author
Forward
0 new messages