Commit 9910aca89b3b1289023319c05411aa8a0bbcddfd
1 parent
f0acea77
Exists in
master
and in
5 other branches
Improving create link test [Issue #123]
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
links/tests.py
... | ... | @@ -24,9 +24,10 @@ class LinkTestCase(TestCase): |
24 | 24 | self.link = Link.objects.create( |
25 | 25 | name = 'testinglink', |
26 | 26 | description = 'testdescription', |
27 | - link = 'teste.com' | |
27 | + link = 'teste' | |
28 | 28 | ) |
29 | 29 | self.assertEqual(Link.objects.all().count(),links+1) #After creating one link, if OK, the link was created successfully. |
30 | + self.assertTemplateUsed(template_name = 'links/link_modal.html') | |
30 | 31 | # def test_update_link(): |
31 | 32 | # pass |
32 | 33 | # def test_delete_link(): | ... | ... |