diff options
Diffstat (limited to 'pecan/tests/test_base.py')
-rw-r--r-- | pecan/tests/test_base.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/pecan/tests/test_base.py b/pecan/tests/test_base.py index 785b522..e953d90 100644 --- a/pecan/tests/test_base.py +++ b/pecan/tests/test_base.py @@ -1683,41 +1683,6 @@ class TestNonCanonical(PecanTestCase): assert len(wrapped_apps) == 1 -class TestDebugging(PecanTestCase): - def test_debugger_setup(self): - class RootController(object): - pass - - def debugger(): - pass - - app_conf = dict( - debug=True, - debugger=debugger - ) - with mock.patch('pecan.middleware.debug.DebugMiddleware') \ - as patched_debug_middleware: - app = make_app(RootController(), **app_conf) - args, kwargs = patched_debug_middleware.call_args - assert kwargs.get('debugger') == debugger - - def test_invalid_debugger_setup(self): - class RootController(object): - pass - - debugger = 'not_a_valid_entry_point' - - app_conf = dict( - debug=True, - debugger=debugger - ) - with mock.patch('pecan.middleware.debug.DebugMiddleware') \ - as patched_debug_middleware: - app = make_app(RootController(), **app_conf) - args, kwargs = patched_debug_middleware.call_args - assert kwargs.get('debugger') is None - - class TestLogging(PecanTestCase): def test_logging_setup(self): |