0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Make test stronger to hopefully fix odd Jenkins failure

This commit is contained in:
Andrew Godwin 2014-01-08 21:20:29 +00:00
parent fa250c2cf9
commit 9ae17d994b

View File

@ -86,7 +86,7 @@ class LoaderTests(TestCase):
)
# Now render it out!
project_state = migration_loader.graph.project_state(("migrations", "0001_initial"))
self.assertEqual(len(project_state.models), 4)
self.assertEqual(len([m for a, m in project_state.models if a == "migrations"]), 1)
book_state = project_state.models["migrations", "book"]
self.assertEqual(