Make sure templates render rather than checking template paths

This commit is contained in:
Mouse Reeve
2021-01-30 12:16:57 -08:00
parent 2b02aba1cf
commit b3bd6822b2
15 changed files with 56 additions and 41 deletions

View File

@ -23,6 +23,7 @@ class BlockViews(TestCase):
inbox='https://example.com/users/rat/inbox',
outbox='https://example.com/users/rat/outbox',
)
models.SiteSettings.objects.create()
def test_block_get(self):
@ -32,7 +33,7 @@ class BlockViews(TestCase):
request.user = self.local_user
result = view(request)
self.assertIsInstance(result, TemplateResponse)
self.assertEqual(result.template_name, 'preferences/blocks.html')
result.render()
self.assertEqual(result.status_code, 200)
def test_block_post(self):