From 20d1786727af3edcbb4608267d129a21362c228a Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 11 Apr 2015 00:06:01 +0200 Subject: [PATCH] Upgrade to Django 1.8 --- booking/tests.py | 21 +++++++++++++++++++-- requirements.txt | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/booking/tests.py b/booking/tests.py index b16406f..47050e5 100644 --- a/booking/tests.py +++ b/booking/tests.py @@ -31,8 +31,25 @@ class FrontTest(TestCase): class DuckCompLevelTest(TestCase): def setUp(self): - duck = Duck() - comp = Competence(name = 'testing') + user = User.objects.create_user(username='test', password='test') + + species = Species(name='test species') + species.save() + + location = Location(name='test location') + location.save() + + duck = Duck( + species=species, + location=location, + donated_by=user) + duck.save() + + comp = Competence( + name='testing', + added_by=user) + comp.save() + self.duckcomp = DuckCompetence( duck = duck, comp = comp, diff --git a/requirements.txt b/requirements.txt index e91e9ab..d9e67da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django>=1.7,<1.8 +Django>=1.8 WebTest==2.0.17 django-webtest==1.7.7 django-js-reverse==0.3.3