mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #17954 -- Fixed dependency checking for test databases. Thanks Łukasz Rekucki for the report and the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17931 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -110,6 +110,25 @@ class DependencyOrderingTests(unittest.TestCase):
|
||||
|
||||
self.assertRaises(ImproperlyConfigured, simple.dependency_ordered, raw, dependencies=dependencies)
|
||||
|
||||
def test_own_alias_dependency(self):
|
||||
raw = [
|
||||
('s1', ('s1_db', ['alpha', 'bravo']))
|
||||
]
|
||||
dependencies = {
|
||||
'alpha': ['bravo']
|
||||
}
|
||||
|
||||
with self.assertRaises(ImproperlyConfigured):
|
||||
simple.dependency_ordered(raw, dependencies=dependencies)
|
||||
|
||||
# reordering aliases shouldn't matter
|
||||
raw = [
|
||||
('s1', ('s1_db', ['bravo', 'alpha']))
|
||||
]
|
||||
|
||||
with self.assertRaises(ImproperlyConfigured):
|
||||
simple.dependency_ordered(raw, dependencies=dependencies)
|
||||
|
||||
|
||||
class MockTestRunner(object):
|
||||
invoked = False
|
||||
|
||||
Reference in New Issue
Block a user