mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32528 -- Replaced django.utils.topological_sort with graphlib.TopologicalSort().
graphlib.TopologicalSort() is available since Python 3.9.
This commit is contained in:
committed by
Mariusz Felisiak
parent
4470c2405c
commit
1282b5e420
@@ -2218,8 +2218,8 @@ class AutodetectorTests(BaseAutodetectorTests):
|
||||
# Right number/type of migrations?
|
||||
self.assertNumberMigrations(changes, "testapp", 1)
|
||||
self.assertOperationTypes(changes, "testapp", 0, ["CreateModel", "CreateModel"])
|
||||
self.assertOperationAttributes(changes, "testapp", 0, 0, name="Publisher")
|
||||
self.assertOperationAttributes(changes, "testapp", 0, 1, name="Author")
|
||||
self.assertOperationAttributes(changes, "testapp", 0, 0, name="Author")
|
||||
self.assertOperationAttributes(changes, "testapp", 0, 1, name="Publisher")
|
||||
self.assertMigrationDependencies(
|
||||
changes, "testapp", 0, [("otherapp", "auto_1")]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user