diff --git a/wagtail_ab_testing/test/tests/test_migrations.py b/wagtail_ab_testing/test/tests/test_migrations.py new file mode 100644 index 0000000..7ce672b --- /dev/null +++ b/wagtail_ab_testing/test/tests/test_migrations.py @@ -0,0 +1,19 @@ +from io import StringIO +from django.core import management +from django.test import TestCase + + +class TestReportView(TestCase): + def test_migrations(self): + output = StringIO() + + try: + management.call_command( + "makemigrations", + "wagtail_ab_testing", + "--check", + stdout=output, + ) + + except SystemExit: + self.fail(output.getvalue())