In addition to the above (which I can confirm causes tests to fail in a new project), I also goofed up a patch related to a different set of auth tests. I've created #17848 (release blocker) to fix this. [1]
Ticket #16366 [2] required the template context processor cache to be cleared. The code resets the cache but fails to restore it. If the auth tests run first, this causes many other test failures in my project because the newly cached template context processors only include the Django defaults. The general issue of having to reset this cache (and others) is in ticket #17787 which targets a later release. [3] I'm sorry about that error and I hope it isn't too late to include the patch. I think it will cause many headaches for other people. I know we shouldn't post about tickets we write but given 1.4 is going to be released in a few days, I think it's important to bring this up. Best, Ryan Kaskel [1] https://code.djangoproject.com/ticket/17848 [2] https://code.djangoproject.com/ticket/16366 [3] https://code.djangoproject.com/ticket/17787 On Wednesday, 7 March 2012 08:40:56 UTC, Ryan Kaskel wrote: > > Hi all. > > I've pulled in the latest changes and it seems like ticket #17327 [1] > introduces a few new tests that are raising errors when I run contrib.auth > tests via my project: > > - > auth.MultiDBChangepasswordManagementCommandTestCase.test_that_changepassword_command_with_database_option_uses_given_db > - > auth.MultiDBCreatesuperuserTestCase.test_createsuperuser_command_with_database_option > > They raise: ConnectionDoesNotExist: The connection other doesn't exist. > > The issue is that the tests assume there there is a database called > "other," which my test settings didn't have. If I add a database "other" in > my test settings, the tests pass. > > I've played around with override_settings but I'm not sure if that would > work here. What I've tried so far doesn't. > > Any tips? > > Thanks, > Ryan Kaskel > > [1] https://code.djangoproject.com/ticket/17327 > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/Kf3GUTSNUvYJ. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.