We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f7cb7 commit be27bf3Copy full SHA for be27bf3
test_app/tests/conftest.py
@@ -1,4 +1,5 @@
1
import random
2
+import re
3
from collections import defaultdict
4
from datetime import datetime, timedelta
5
from unittest import mock
@@ -55,7 +56,7 @@ def test_migrations_okay(*args, **kwargs):
55
56
57
migration_module = app_config.module.migrations
58
for step in dir(migration_module):
- if not step.startswith('00'):
59
+ if not re.match(r'\d\d\d\d_', step):
60
continue
61
step_module = getattr(migration_module, step)
62
migration_name = step_module.__name__.rsplit('.')[-1]
0 commit comments