本文整理汇总了Python中tests.base.startServer函数的典型用法代码示例。如果您正苦于以下问题:Python startServer函数的具体用法?Python startServer怎么用?Python startServer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了startServer函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUpModule
def setUpModule():
curConfig = config.getConfig()
curConfig.setdefault('large_image', {})
curConfig['large_image']['cache_backend'] = os.environ.get(
'LARGE_IMAGE_CACHE_BACKEND')
base.enabledPlugins.append('large_image')
base.startServer(False)
示例2: setUpModule
def setUpModule():
"""
Enable the minerva plugin and start the server.
"""
base.enabledPlugins.append('minerva')
base.enabledPlugins.append('jobs')
base.startServer(False)
示例3: setUpModule
def setUpModule(): # noqa
"""Enable the minerva plugin and start the server."""
base.enabledPlugins.append('jobs')
base.enabledPlugins.append('romanesco')
base.enabledPlugins.append('gravatar')
base.enabledPlugins.append('minerva')
base.startServer()
示例4: setUpModule
def setUpModule():
base.enabledPlugins.append('worker')
base.startServer()
global JobStatus, utils, worker, CustomJobStatus
from girder.plugins.jobs.constants import JobStatus
from girder.plugins import worker
from girder.plugins.worker import utils, CustomJobStatus
示例5: setUpModule
def setUpModule():
global AnsibleClusterAdapter
base.enabledPlugins.append('cumulus')
cherrypy.server.socket_port = 8081
base.startServer(mock=False)
from girder.plugins.cumulus.utility.cluster_adapters import AnsibleClusterAdapter
示例6: setUpModule
def setUpModule():
base.enabledPlugins.append('osumo')
base.startServer(False)
示例7: setUpModule
def setUpModule():
base.enabledPlugins.append('item_tasks')
base.startServer()
示例8: setUpModule
def setUpModule():
"""
Enable the geospatial plugin and start the server.
"""
base.enabledPlugins.append('geospatial')
base.startServer()
示例9: setUpModule
def setUpModule():
base.enabledPlugins.append('jobs')
base.startServer()
global JobStatus, REST_CREATE_JOB_TOKEN_SCOPE
from girder.plugins.jobs.constants import JobStatus, REST_CREATE_JOB_TOKEN_SCOPE
示例10: setUpModule
def setUpModule():
"""
Enable the gaia plugin and start the server.
"""
base.enabledPlugins.append('gaia')
base.startServer(False)
示例11: setUpModule
def setUpModule():
plugins = os.environ.get('ENABLED_PLUGINS', '')
if plugins:
base.enabledPlugins.extend(plugins.split())
base.startServer(False)