Tests are broken with django 1.2.5

Issue #72 resolved
David Jean Louis
repo owner created an issue

Here's what I get:

{{{ $ ./runtests.sh Creating test database 'default'... Syncing... Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_user_permissions Creating table auth_user_groups Creating table auth_user Creating table auth_message Creating table django_content_type Creating table django_session Creating table django_site Creating table django_admin_log Creating table south_migrationhistory Creating table test_app_foo Creating table test_app_bar Installing index for auth.Permission model Installing index for auth.Group_permissions model Installing index for auth.User_user_permissions model Installing index for auth.User_groups model Installing index for auth.Message model Installing index for admin.LogEntry model Migrating... Running migrations for menu: - Migrating forwards to 0001_initial.

menu:0001_initial - Loading initial data for menu. No fixtures found. Running migrations for dashboard: - Migrating forwards to 0001_initial. dashboard:0001_initial - Loading initial data for dashboard. No fixtures found.


admin_tools admin_tools.theming django.contrib.auth django.contrib.contenttypes django.contrib.sessions django.contrib.sites django.contrib.admin south test_app

Migrated: - admin_tools.menu - admin_tools.dashboard Installing json fixture 'initial_data' from '/home/www/testproject/src/django-admin-tools/test_proj/test_app/fixtures'. Installed 2 object(s) from 1 fixture(s) "/tmp/tmpGJMByl" written. Error: file "/tmp/tmpGJMByl" already exists ."/tmp/tmpKAj5KR" written. Error: Error: file "/tmp/tmpKAj5KR" already exists ..FF......... ====================================================================== FAIL: test_app_index (test_app.tests.AdminBasicTest)

Traceback (most recent call last): File "/home/www/testproject/src/django-admin-tools/test_proj/test_app/tests.py", line 26, in test_app_index self.assertEqual(res.status_code, 200) AssertionError: 404 != 200

====================================================================== FAIL: test_permissions (test_app.tests.AdminBasicTest)

Traceback (most recent call last): File "/home/www/testproject/src/django-admin-tools/test_proj/test_app/tests.py", line 14, in test_permissions self.assertContains(index, 'Foos') File "/home/www/testproject/lib/python2.6/site-packages/django/test/testcases.py", line 395, in assertContains msg_prefix + "Couldn't find '%s' in response" % text) AssertionError: Couldn't find 'Foos' in response

Ran 14 tests in 0.699s

FAILED (failures=2) Destroying test database 'default'... }}}

They work perfectly with django 1.2.4 or inferior though... No idea why :/