Remove duplication
This commit is contained in:
1 parent
ff8e1b4363
commit
6fe51d2e08
4 files changed
+8
-6
No files matched your search
@@ -15,6 +15,8 @@
|
||||
import re
|
||||
import logging
|
||||
|
||||
from django_migration_linter.constants import IGNORE_MIGRATION
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -65,7 +67,7 @@ migration_tests = (
|
||||
'err_msg': ''
|
||||
}, {
|
||||
'code': 'IGNORED_MIGRATION',
|
||||
'fn': lambda sql, **kw: re.search('dml-ignore', sql),
|
||||
'fn': lambda sql, **kw: re.search(IGNORE_MIGRATION[0], sql),
|
||||
'err_msg': '',
|
||||
}
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user