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()
def broker(): return MockEvents()
def broker(): broker = MockEvents() return broker
def web_client(): broker = MockEvents() return create(config=config['development'], broker=broker).test_client()
def before_all(context): context.broker = MockEvents() context.web_client = app.create(config=config['testing'], broker=context.broker).test_client()