Exemplo n.º 1
0
def event_server():
    _conf = {'ip': '127.0.0.1', 'mock.port': 9090}
    application._cm = MockConfigManager(config=_conf)
    lyrebird.mock.context.application.socket_io = FakeSocketio()
    server = EventServer()
    server.start()
    lyrebird.application.server['event'] = server
    yield server
    server.stop()
Exemplo n.º 2
0
def event_server():
    _conf = {
        'ip': '127.0.0.1',
        'mock.port': 9090
    }
    application._cm = MockConfigManager(config=_conf)
    server = EventServer()
    server.start()
    application.server['event'] = server
    yield server
    server.stop()
Exemplo n.º 3
0
def event_server():
    server = EventServer()
    server.start()
    lyrebird.application.server['event'] = server
    yield server
    server.stop()