diff --git a/articles/tests/conftest.py b/articles/tests/conftest.py index ed261a9..a0348aa 100644 --- a/articles/tests/conftest.py +++ b/articles/tests/conftest.py @@ -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 diff --git a/articles/tests/test_migrations.py b/articles/tests/test_migrations.py new file mode 100644 index 0000000..907207b --- /dev/null +++ b/articles/tests/test_migrations.py @@ -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")