Beispiel #1
0
    def test_render_without_template_debug_setting(self):
        signals.template_rendered.connect(self._fail_listener)

        with self.settings(TEMPLATE_DEBUG=False):
            tmpl = Template("OK")
            tmpl.render()
Beispiel #2
0
    def test_render_without_template_debug_setting(self):
        signals.template_rendered.connect(self._fail_listener)

        with self.settings(TEMPLATE_DEBUG=False):
            tmpl = Template("OK")
            tmpl.render()
Beispiel #3
0
 def test_render(self):
     with self.settings(TEMPLATE_DEBUG=True):
         tmpl = Template("OK")
         tmpl.render()
Beispiel #4
0
 def test_render(self):
     with self.settings(TEMPLATE_DEBUG=True):
         tmpl = Template("OK")
         tmpl.render()