Esempio n. 1
0
 def setUp(self):
     server_settings.reset()
     for k, v in self.options.items():
         setattr(server_settings, k, v)
     server_settings.model_backend = {'type': 'memory'}
     configure.configure_flask()
     with mock.patch('bokeh.server.configure.logging'):
         configure.register_blueprint()
     #ugh..need better way to initialize this
     app.secret_key = server_settings.secret_key
     app.debug = True
     self.client = app.test_client()
Esempio n. 2
0
 def setUp(self):
     server_settings.reset()
     for k, v in self.options.items():
         setattr(server_settings, k, v)
     server_settings.model_backend = {'type': 'memory'}
     configure.configure_flask()
     with mock.patch('bokeh.server.configure.logging'):
         configure.register_blueprint()
     #ugh..need better way to initialize this
     app.secret_key = server_settings.secret_key
     app.debug = True
     self.client = app.test_client()
Esempio n. 3
0
 def setUp(self):
     # clear tornado ioloop instance
     server_settings.reset()
     server_settings.model_backend = {'type': 'memory'}
     for k, v in self.options.items():
         setattr(server_settings, k, v)
     bokeh_app.stdout = None
     bokeh_app.stderr = None
     self.serverthread = threading.Thread(target=start.start_simple_server)
     self.serverthread.start()
     wait_flask()
     # not great - but no good way to wait for zmq to come up
     time.sleep(0.1)
     make_default_user(bokeh_app)
Esempio n. 4
0
 def setUp(self):
     # clear tornado ioloop instance
     server_settings.reset()
     server_settings.model_backend = {'type': 'memory'}
     for k, v in self.options.items():
         setattr(server_settings, k, v)
     bokeh_app.stdout = None
     bokeh_app.stderr = None
     self.serverthread = threading.Thread(target=start.start_simple_server)
     self.serverthread.start()
     wait_flask()
     # not great - but no good way to wait for zmq to come up
     time.sleep(0.1)
     make_default_user(bokeh_app)