This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/src/articles/tests/test_migrations.py

8 lines
187 B
Python
Raw Normal View History

import pytest
from django.core.management import call_command
@pytest.mark.django_db()
2021-12-31 12:08:03 +01:00
def test_missing_migrations() -> None:
2022-05-25 19:19:37 +02:00
call_command("makemigrations", "--check", "--dry-run")