Update to Django 1.6

This commit is contained in:
Oskar Hahn 2013-10-27 12:26:56 +01:00
parent e92af391c3
commit ab048e3393
4 changed files with 2 additions and 7 deletions

View File

@ -127,9 +127,6 @@ CACHES = {
}
}
TEST_RUNNER = 'discover_runner.DiscoverRunner'
TEST_DISCOVER_TOP_LEVEL = os.path.dirname(os.path.dirname(__file__))
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['*']

View File

@ -4,7 +4,6 @@
# Requirements for development and tests
Fabric==1.8.0
coverage==3.7
django-discover-runner==1.0
flake8==2.0
mock==1.0.1

View File

@ -1,4 +1,4 @@
Django==1.5.4
Django==1.6.0
django-mptt==0.6.0
reportlab==2.7
pillow==2.2.1

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
from django.db.models.query import EmptyQuerySet
from django.test.client import Client
from openslides.agenda.models import Item
@ -29,7 +28,7 @@ class ItemTest(TestCase):
self.assertFalse(self.item1.closed)
def testParents(self):
self.assertEqual(type(self.item1.get_ancestors()), EmptyQuerySet)
self.assertFalse(self.item1.get_ancestors())
self.assertTrue(self.item1 in self.item3.get_ancestors())
self.assertTrue(self.item1 in self.item4.get_ancestors())
self.assertFalse(self.item2 in self.item4.get_ancestors())