コード例 #1
0
def before_all(context):
    context.broker = MockEvents()
    logger = logging.getLogger()
    logger.addHandler(logging.NullHandler())
    context.web_client = app.create(config=config['testing'],
                                    broker=context.broker,
                                    logger=wrap_logger(logger)).test_client()
コード例 #2
0
def broker():
    return MockEvents()
コード例 #3
0
def broker():
    broker = MockEvents()
    return broker
コード例 #4
0
def web_client():
    broker = MockEvents()
    return create(config=config['development'], broker=broker).test_client()
コード例 #5
0
def before_all(context):
    context.broker = MockEvents()
    context.web_client = app.create(config=config['testing'],
                                    broker=context.broker).test_client()