Upgrade to Django 1.8
This commit is contained in:
parent
cc0850f872
commit
20d1786727
@ -31,8 +31,25 @@ class FrontTest(TestCase):
|
|||||||
|
|
||||||
class DuckCompLevelTest(TestCase):
|
class DuckCompLevelTest(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
duck = Duck()
|
user = User.objects.create_user(username='test', password='test')
|
||||||
comp = Competence(name = 'testing')
|
|
||||||
|
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(
|
self.duckcomp = DuckCompetence(
|
||||||
duck = duck,
|
duck = duck,
|
||||||
comp = comp,
|
comp = comp,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Django>=1.7,<1.8
|
Django>=1.8
|
||||||
WebTest==2.0.17
|
WebTest==2.0.17
|
||||||
django-webtest==1.7.7
|
django-webtest==1.7.7
|
||||||
django-js-reverse==0.3.3
|
django-js-reverse==0.3.3
|
||||||
|
Loading…
Reference in New Issue
Block a user