Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/f/l/Flask-GAE-Mini-Profiler-0.1.2/tests/extension.py   Flask-GAE-Mini-Profiler(Download)
    def _get_middleware(self, app_config=None):
        from flaskext.gae_mini_profiler import GAEMiniProfilerWSGIMiddleware
 
        with mock.patch('flaskext.gae_mini_profiler.profiler'):
            app = mock.MagicMock(name='app')
            if app_config:
                app.config = app_config
 
            wsgi_app = mock.Mock(name='wsgi_app')
            return GAEMiniProfilerWSGIMiddleware(app, wsgi_app)

src/f/l/flask-gae-mini-profiler-HEAD/tests/extension.py   flask-gae-mini-profiler(Download)
    def _get_middleware(self, app_config=None):
        from flaskext.gae_mini_profiler import GAEMiniProfilerWSGIMiddleware
 
        with mock.patch('flaskext.gae_mini_profiler.profiler'):
            app = mock.MagicMock(name='app')
            if app_config:
                app.config = app_config
 
            wsgi_app = mock.Mock(name='wsgi_app')
            return GAEMiniProfilerWSGIMiddleware(app, wsgi_app)