Add pytest test to check for missing migrations

This commit is contained in:
Gabriel Augendre 2021-01-04 18:11:16 +01:00
parent 2267a61d77
commit 4229060233
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4
2 changed files with 7 additions and 1 deletions

View file

@ -1,7 +1,6 @@
import uuid
import pytest
from django.core.management import call_command
from django.utils import timezone
from articles.models import Article, User

View file

@ -0,0 +1,7 @@
import pytest
from django.core.management import call_command
@pytest.mark.django_db
def test_missing_migrations():
call_command("makemigrations", "--check")