Skip to content

Commit

Permalink
Merge pull request #71 from mgax/test-for-missing-migrations
Browse files Browse the repository at this point in the history
Test for missing migrations
  • Loading branch information
Stormheg authored Dec 14, 2023
2 parents ced8a81 + 73f6bfa commit bc80443
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 TestMigrations(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 bc80443

Please sign in to comment.