예제 #1
0
 def test_handlebars_compile_error(self) -> None:
     request = HostRequestMock()
     with self.settings(DEVELOPMENT=True, TEST_SUITE=False):
         with patch('os.path.exists', return_value=True):
             result = home(request)
     self.assertEqual(result.status_code, 500)
     self.assert_in_response('Error compiling handlebars templates.', result)
예제 #2
0
파일: test_home.py 프로젝트: sonu96/zulip
 def test_handlebars_compile_error(self) -> None:
     request = HostRequestMock()
     with self.settings(DEVELOPMENT=True):
         with patch('os.path.exists', return_value=True):
             result = home(request)
     self.assertEqual(result.status_code, 500)
     self.assert_in_response('Error compiling handlebars templates.',
                             result)