init project tests
This commit is contained in:
parent
d0ff728224
commit
7c9318c778
44 changed files with 4431 additions and 49 deletions
|
@ -1,9 +1,10 @@
|
|||
from django.test import TestCase
|
||||
from aviary.models import Aviary
|
||||
|
||||
|
||||
class AviaryTestCase(TestCase):
|
||||
def setUp(self):
|
||||
Aviary.objects.create(
|
||||
self.aviary = Aviary.objects.create(
|
||||
description="Voliere 1",
|
||||
condition="Offen",
|
||||
last_ward_round="2021-01-01",
|
||||
|
@ -20,7 +21,7 @@ class AviaryTestCase(TestCase):
|
|||
|
||||
def test_aviary_last_ward_round(self):
|
||||
aviary = Aviary.objects.get(description="Voliere 1")
|
||||
self.assertEqual(aviary.last_ward_round, "2021-01-01")
|
||||
self.assertEqual(str(aviary.last_ward_round), "2021-01-01")
|
||||
|
||||
def test_aviary_comment(self):
|
||||
aviary = Aviary.objects.get(description="Voliere 1")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue