From 80bf3135d08d7c050cfa603a8645096ee5d18534 Mon Sep 17 00:00:00 2001 From: Jarek Glowacki Date: Sun, 8 May 2016 11:01:23 +1000 Subject: [PATCH] Sorted migration list order in test; added trailing comma. --- tests/migrations/test_loader.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py index c646bb6fc2..bf948768fd 100644 --- a/tests/migrations/test_loader.py +++ b/tests/migrations/test_loader.py @@ -301,10 +301,10 @@ class LoaderTests(TestCase): plan = set(loader.graph.forwards_plan(('app1', '4_auto'))) expected_plan = { - ('app1', '4_auto'), - ('app1', '2_squashed_3'), + ('app1', '1_auto'), ('app2', '1_squashed_2'), - ('app1', '1_auto') + ('app1', '2_squashed_3'), + ('app1', '4_auto'), } self.assertEqual(plan, expected_plan) @@ -326,9 +326,9 @@ class LoaderTests(TestCase): plan = set(loader.graph.forwards_plan(('app1', '4_auto'))) plan = plan - loader.applied_migrations expected_plan = { - ('app1', '4_auto'), - ('app1', '3_auto'), ('app2', '1_squashed_2'), + ('app1', '3_auto'), + ('app1', '4_auto'), } self.assertEqual(plan, expected_plan)