Skip to content

Commit e067aec

Browse files
committed
Fix test to reflect change by @Psycojoker
- A bad app import no longer raises ImproperlyConfigured. It now emits a warning
1 parent 841a7e8 commit e067aec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

jstemplate/tests/test_finders.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,6 @@ def test_get_app_template_dirs(self):
183183

184184
@override_settings(INSTALLED_APPS=["jstemplate.nonexistent"])
185185
def test_bad_app(self):
186-
with self.assertRaises(ImproperlyConfigured):
186+
with patch('warnings.warn') as warn:
187187
self.func()
188+
self.assertEqual(warn.call_count, 1)

0 commit comments

Comments
 (0)