We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5280479 commit 4d8b796Copy full SHA for 4d8b796
portfolio/tests.py
@@ -1,6 +1,6 @@
1
import tempfile
2
from django.test import TestCase
3
-from .models import Hero, About, Tag
+from .models import Hero, About, Tag, Contact
4
5
6
class HeroModelUnitTestCase(TestCase):
@@ -39,3 +39,16 @@ def setUp(self):
39
def test_tag_model(self):
40
data = self.tag
41
self.assertIsInstance(data, Tag)
42
+
43
44
+class ContactModelUnitTestCase(TestCase):
45
+ def setUp(self):
46
+ self.contact = Contact.objects.create(
47
+ address='Dublin, Ireland',
48
+ email='bob@test.com',
49
+ phone='123456789'
50
+ )
51
52
+ def test_contact_model(self):
53
+ data = self.contact
54
+ self.assertIsInstance(data, Contact)
0 commit comments