@@ -641,32 +641,6 @@ def test_repr_and_str(self):
641641 self .assertEqual (str (exc ), 'text' )
642642 self .assertEqual (repr (exc ), 'text' )
643643
644- class TestDebugtoolbarPanel (Base , unittest .TestCase ):
645-
646- def test_panel_null (self ):
647- # we shouldn't have any mako_renderers configured... but the panel should run
648- from pyramid_mako .debugtoolbar .panels .main import PyramidMakoMainDebugPanel
649- from pyramid .testing import DummyRequest
650- panel = PyramidMakoMainDebugPanel (DummyRequest ())
651- self .assertTrue ('mako_renderers' in panel .data )
652- self .assertTrue (len (panel .data ['mako_renderers' ]) == 0 )
653-
654- def test_panel_full (self ):
655- # we should have a single renders for .mako+.mak
656- from pyramid_mako .debugtoolbar .panels .main import PyramidMakoMainDebugPanel
657- from pyramid .testing import DummyRequest
658- self .config = testing .setUp ()
659- self .settings = {'mako.directories' : 'pyramid_mako.tests:fixtures' ,
660- 'mako.preprocessor' :
661- 'pyramid_mako.tests.dummy_mako_preprocessor' ,
662- 'mako.preprocessor_wants_settings' : 'true' ,
663- 'replace_Hello' : 'Goodbye' ,
664- }
665- self .config .add_settings (self .settings )
666- self .config .include ('pyramid_mako' )
667- panel = PyramidMakoMainDebugPanel (DummyRequest ())
668- self .assertTrue ('mako_renderers' in panel .data )
669- self .assertTrue (len (panel .data ['mako_renderers' ]) == 1 )
670644
671645class DummyLookup (object ):
672646 directories = True
0 commit comments