From a0b95dc2dfb84c682bb8f677e5d471f84e5028fe Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 14 Nov 2018 13:17:42 -0600 Subject: wrote out basic notes skeleton --- apps/accounts/tests/test_models.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 apps/accounts/tests/test_models.py (limited to 'apps/accounts/tests/test_models.py') diff --git a/apps/accounts/tests/test_models.py b/apps/accounts/tests/test_models.py new file mode 100644 index 0000000..f9b33f6 --- /dev/null +++ b/apps/accounts/tests/test_models.py @@ -0,0 +1,13 @@ +from django.test import TestCase +from mixer.backend.django import mixer + +from accounts.models import User, UserProfile + + +class UserProfileModelTest(TestCase): + + def test_string_representation(self): + user = mixer.blend(User, username='test') + user.save() + profile = UserProfile.objects.get(user=user) + self.assertEqual(str(profile), str(user.username)) -- cgit v1.2.3-70-g09d2