mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #21674 -- Deprecated the import_by_path() function in favor of import_string().
Thanks Aymeric Augustin for the suggestion and review.
This commit is contained in:
parent
fcc21837dc
commit
5d263dee30
31 changed files with 155 additions and 95 deletions
|
@ -788,11 +788,11 @@ class TestMiscFinder(TestCase):
|
|||
finders.FileSystemFinder)
|
||||
|
||||
def test_get_finder_bad_classname(self):
|
||||
self.assertRaises(ImproperlyConfigured, finders.get_finder,
|
||||
self.assertRaises(ImportError, finders.get_finder,
|
||||
'django.contrib.staticfiles.finders.FooBarFinder')
|
||||
|
||||
def test_get_finder_bad_module(self):
|
||||
self.assertRaises(ImproperlyConfigured,
|
||||
self.assertRaises(ImportError,
|
||||
finders.get_finder, 'foo.bar.FooBarFinder')
|
||||
|
||||
def test_cache(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue