From 9ae17d994b1b0dee952c2e64f3727ce7a6ffb398 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 8 Jan 2014 21:20:29 +0000 Subject: [PATCH] Make test stronger to hopefully fix odd Jenkins failure --- tests/migrations/test_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py index 564e5207b83..f661a03b020 100644 --- a/tests/migrations/test_loader.py +++ b/tests/migrations/test_loader.py @@ -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(