mirror of
https://github.com/django/django.git
synced 2024-11-29 14:46:18 +01:00
Sorted migration list order in test; added trailing comma.
This commit is contained in:
parent
c8df17b612
commit
80bf3135d0
@ -301,10 +301,10 @@ class LoaderTests(TestCase):
|
|||||||
|
|
||||||
plan = set(loader.graph.forwards_plan(('app1', '4_auto')))
|
plan = set(loader.graph.forwards_plan(('app1', '4_auto')))
|
||||||
expected_plan = {
|
expected_plan = {
|
||||||
('app1', '4_auto'),
|
('app1', '1_auto'),
|
||||||
('app1', '2_squashed_3'),
|
|
||||||
('app2', '1_squashed_2'),
|
('app2', '1_squashed_2'),
|
||||||
('app1', '1_auto')
|
('app1', '2_squashed_3'),
|
||||||
|
('app1', '4_auto'),
|
||||||
}
|
}
|
||||||
self.assertEqual(plan, expected_plan)
|
self.assertEqual(plan, expected_plan)
|
||||||
|
|
||||||
@ -326,9 +326,9 @@ class LoaderTests(TestCase):
|
|||||||
plan = set(loader.graph.forwards_plan(('app1', '4_auto')))
|
plan = set(loader.graph.forwards_plan(('app1', '4_auto')))
|
||||||
plan = plan - loader.applied_migrations
|
plan = plan - loader.applied_migrations
|
||||||
expected_plan = {
|
expected_plan = {
|
||||||
('app1', '4_auto'),
|
|
||||||
('app1', '3_auto'),
|
|
||||||
('app2', '1_squashed_2'),
|
('app2', '1_squashed_2'),
|
||||||
|
('app1', '3_auto'),
|
||||||
|
('app1', '4_auto'),
|
||||||
}
|
}
|
||||||
|
|
||||||
self.assertEqual(plan, expected_plan)
|
self.assertEqual(plan, expected_plan)
|
||||||
|
Loading…
Reference in New Issue
Block a user