diff --git a/src/tests/test_models.py b/src/tests/test_models.py index fc0afb8..5a47850 100644 --- a/src/tests/test_models.py +++ b/src/tests/test_models.py @@ -4,7 +4,15 @@ from django.utils import timezone from django.test import TestCase from model_bakery import baker -from fellchensammlung.models import Announcement, Language +from fellchensammlung.models import Announcement, Language, User + + +class UserTest(TestCase): + def test_creating_user(self): + test_user_1 = User.objects.create(username="Testuser1", password="SUPERSECRET", email="test@example.org") + + self.assertTrue(test_user_1.trust_level == 1) + self.assertTrue(test_user_1.trust_level == User.TRUST_LEVEL[User.MEMBER]) class AnnouncementTest(TestCase): @@ -69,4 +77,3 @@ class AnnouncementTest(TestCase): self.assertTrue(self.announcement2 not in active_announcements) self.assertTrue(self.announcement4 not in active_announcements) self.assertTrue(self.announcement5 in active_announcements) -