Skip to content

Commit

Permalink
Run check manage command in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed Mar 29, 2019
1 parent e992bf8 commit a0e3915
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project_novis/main/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.contrib.auth import get_user_model
from django.test import Client, TestCase
from django.urls import reverse
from django.core import management


class ViewTest(TestCase):
Expand Down Expand Up @@ -46,3 +47,8 @@ def test_views_logged_in(self):
with self.subTest(i=view):
response = self.client.get(reverse(view, kwargs=kwargs))
self.assertEqual(response.status_code, status_code)


class ManageCheckTest(TestCase):
def test_check_command(self):
management.call_command('check')

0 comments on commit a0e3915

Please sign in to comment.