Skip to content

Commit d4836d7

Browse files
committed
missed from commit
1 parent 8412558 commit d4836d7

2 files changed

Lines changed: 0 additions & 30 deletions

File tree

CHANGES.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ unreleased
55
the ``preprocessor`` will be wrapped in a function that invokes the
66
preprocessor with pyramid's config settings as the second argument.
77

8-
- Added a debugtoolbar panel for debugging use
9-
debugtoolbar.panels =
10-
pyramid_mako.debugtoolbar.panels.main.PyramidMakoMainDebugPanel
11-
128
- `add_mako_renderer` now accepts a list of `extensions` instead of a single
139
`extension`. This allows for multiple extensions to share a single lookup.
1410
Under the previous system, `.mako` and `.mak` would be registered to different

pyramid_mako/tests.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -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

671645
class DummyLookup(object):
672646
directories = True

0 commit comments

Comments
 (0)