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 194515a commit 8bf633cCopy full SHA for 8bf633c
portfolio/tests.py
@@ -1,6 +1,6 @@
1
import tempfile
2
from django.test import TestCase
3
-from .models import Hero
+from .models import Hero, About
4
5
6
class HeroModelUnitTestCase(TestCase):
@@ -15,3 +15,16 @@ def setUp(self):
15
def test_hero_model(self):
16
data = self.hero
17
self.assertIsInstance(data, Hero)
18
+
19
20
+class AboutModelUnitTestCase(TestCase):
21
+ def setUp(self):
22
+ self.about = About.objects.create(
23
+ title='Lorem ipsum dolor sit amet',
24
+ description='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tincidunt quis odio id.',
25
+ icon='settings'
26
+ )
27
28
+ def test_about_model(self):
29
+ data = self.about
30
+ self.assertIsInstance(data, About)
0 commit comments