diff --git a/tests/unit/test_migrations_files.py b/tests/unit/test_migrations_files.py index 99fd13a..a863c4e 100644 --- a/tests/unit/test_migrations_files.py +++ b/tests/unit/test_migrations_files.py @@ -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) \ No newline at end of file + if len(migr_list) > 1: + msg = "Duplicate migrations found for number %s." % migr_number + self.fail(msg) \ No newline at end of file