django.test.simple.dependency_ordered() allows cyclic dependencies between aliases.
|Reported by:||lrekucki||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
(This ticket is split from #17758)
The result of this functions depends on the order of aliases for given DB signature (which in turn depends on the order in settings.DATABASES dict) - i.e. if you have a DB with aliases ["A", "B"] and "A" depends on "B" then it will raise an error. If the alias list is ["B", "A"] it will pass.
Patch with tests provided in https://github.com/django/django/pull/131
Change History (8)
comment:1 Changed 2 years ago by ramiro
- Summary changed from django.test.simple.dependency_order() allows cyclic dependencies between aliases. to django.test.simple.dependency_ordered() allows cyclic dependencies between aliases.
- Triage Stage changed from Unreviewed to Accepted
Changed 2 years ago by claudep
comment:4 Changed 17 months ago by simonpercivall
- Resolution fixed deleted
- Status changed from closed to new