Conditions | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from pages.checks import page_templates_loading_check |
||
9 | def test_check_detects_unexistant_template(self): |
||
10 | unexistant = ('does_not_exists.html', 'foo') |
||
11 | with self.settings(PAGE_TEMPLATES=[unexistant]): |
||
12 | errors = page_templates_loading_check([]) |
||
13 | |||
14 | self.assertEqual(errors, [Warning( |
||
15 | 'Django cannot find template does_not_exists.html', |
||
16 | obj=unexistant, id='pages.W001')]) |
||
17 | |||
28 |