mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #25791 -- Added get_dirs() method to cached template loader.
This commit is contained in:
committed by
Carlton Gibson
parent
859cd7c6b4
commit
29845ecf69
@@ -93,6 +93,10 @@ class CachedLoaderTests(SimpleTestCase):
|
||||
"""
|
||||
self.assertEqual(self.engine.template_loaders[0].cache_key(lazystr('template.html'), []), 'template.html')
|
||||
|
||||
def test_get_dirs(self):
|
||||
inner_dirs = self.engine.template_loaders[0].loaders[0].get_dirs()
|
||||
self.assertSequenceEqual(list(self.engine.template_loaders[0].get_dirs()), list(inner_dirs))
|
||||
|
||||
|
||||
class FileSystemLoaderTests(SimpleTestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user