mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-13 12:33:23 +02:00
19 lines
562 B
Python
19 lines
562 B
Python
from django.core.management import call_command
|
|
from django.test import TestCase
|
|
from six import StringIO
|
|
|
|
|
|
class IntegrityTestCase(TestCase):
|
|
"""
|
|
Very basic tests around the app itself, not the code.
|
|
"""
|
|
|
|
def test_no_pending_migrations(self):
|
|
"""
|
|
Make sure all model changes are reflected with Django migrations.
|
|
"""
|
|
output = StringIO()
|
|
call_command(
|
|
"makemigrations", "--dry-run", interactive=False, stdout=output
|
|
)
|
|
self.assertTrue("No changes detected" in output.getvalue())
|