Skip to content

Commit

Permalink
Test for missing migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
mgax authored and Stormheg committed Dec 13, 2023
1 parent 52fd72c commit 3cefd2b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions wagtail_ab_testing/test/tests/test_migrations.py
Original file line number Diff line number Diff line change
@@ -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())

0 comments on commit 3cefd2b

Please sign in to comment.