Cleaning up migrations test
This commit is contained in:
parent
da08e77af6
commit
bfa146f130
@ -22,11 +22,6 @@ class MigrationsTestCase(StacktachBaseTestCase):
|
||||
migr_list = migrs.get(migr_number, [])
|
||||
migr_list.append(f)
|
||||
migrs[migr_number] = migr_list
|
||||
|
||||
dups = []
|
||||
for num in migrs:
|
||||
if len(migrs[num]) > 1:
|
||||
dups.append(num)
|
||||
|
||||
msg = "Duplicate migrations found for number(s) %s" % ' '.join(dups)
|
||||
self.assertEqual(len(dups), 0, msg)
|
||||
if len(migr_list) > 1:
|
||||
msg = "Duplicate migrations found for number %s." % migr_number
|
||||
self.fail(msg)
|
Loading…
x
Reference in New Issue
Block a user