Skip to content

Commit

Permalink
removed debugtoolbar feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanasco committed Nov 28, 2016
1 parent eb5d6c2 commit a1d4798
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 102 deletions.
4 changes: 0 additions & 4 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ unreleased
the ``preprocessor`` will be wrapped in a function that invokes the
preprocessor with pyramid's config settings as the second argument.

- Added a debugtoolbar panel for debugging use
debugtoolbar.panels =
pyramid_mako.debugtoolbar.panels.main.PyramidMakoMainDebugPanel

- `add_mako_renderer` now accepts a list of `extensions` instead of a single
`extension`. This allows for multiple extensions to share a single lookup.
Under the previous system, `.mako` and `.mak` would be registered to different
Expand Down
Empty file.
Empty file.
24 changes: 0 additions & 24 deletions pyramid_mako/debugtoolbar/panels/main.py

This file was deleted.

48 changes: 0 additions & 48 deletions pyramid_mako/debugtoolbar/panels/templates/main.dbtmako

This file was deleted.

26 changes: 0 additions & 26 deletions pyramid_mako/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,32 +641,6 @@ def test_repr_and_str(self):
self.assertEqual(str(exc), 'text')
self.assertEqual(repr(exc), 'text')

class TestDebugtoolbarPanel(Base, unittest.TestCase):

def test_panel_null(self):
# we shouldn't have any mako_renderers configured... but the panel should run
from pyramid_mako.debugtoolbar.panels.main import PyramidMakoMainDebugPanel
from pyramid.testing import DummyRequest
panel = PyramidMakoMainDebugPanel(DummyRequest())
self.assertTrue('mako_renderers' in panel.data)
self.assertTrue(len(panel.data['mako_renderers']) == 0)

def test_panel_full(self):
# we should have a single renders for .mako+.mak
from pyramid_mako.debugtoolbar.panels.main import PyramidMakoMainDebugPanel
from pyramid.testing import DummyRequest
self.config = testing.setUp()
self.settings = {'mako.directories': 'pyramid_mako.tests:fixtures',
'mako.preprocessor':
'pyramid_mako.tests.dummy_mako_preprocessor',
'mako.preprocessor_wants_settings': 'true',
'replace_Hello': 'Goodbye',
}
self.config.add_settings(self.settings)
self.config.include('pyramid_mako')
panel = PyramidMakoMainDebugPanel(DummyRequest())
self.assertTrue('mako_renderers' in panel.data)
self.assertTrue(len(panel.data['mako_renderers']) == 1)

class DummyLookup(object):
directories = True
Expand Down

0 comments on commit a1d4798

Please sign in to comment.