@pytest.fixture
def configured(monkeypatch):
    test_args = mock.Mock()
    test_args.config = 'test_config'
    test_args.rule = None
    test_args.debug = False
    test_args.es_debug_trace = None
    test_args.silence = False
    test_args.timeout = 0
    _conf = {'args': test_args, 'debug': False, 'rules_loader': 'test', 'rules_folder': 'rules', 'run_every': datetime.timedelta(minutes=10), 'buffer_time': datetime.timedelta(minutes=5), 'alert_time_limit': datetime.timedelta(hours=24), 'es_client': config.ESClient(es_host='es', es_port=12345, es_password='', es_username='', es_conn_timeout=1234, es_url_prefix='es/test', es_send_get_body_as='GET'), 'writeback_index': 'wb', 'writeback_alias': 'wb_a', 'max_query_size': 10000, 'old_query_limit': datetime.timedelta(weeks=1), 'disable_rules_on_error': False, 'scroll_keepalive': '30s'}
    monkeypatch.setattr(config, '_cfg', config.Config(**_conf))
@pytest.fixture
def configured(monkeypatch):
    test_args = mock.Mock()
    test_args.config = 'test_config'
    test_args.rule = None
    test_args.debug = False
    test_args.es_debug_trace = None
    test_args.silence = False
    test_args.timeout = 0
    _conf = {'args': test_args, 'debug': False, 'rules_loader': 'test', 'rules_folder': 'rules', 'run_every': datetime.timedelta(minutes=10), 'buffer_time': datetime.timedelta(minutes=5), 'alert_time_limit': datetime.timedelta(hours=24), 'es_client': config.ESClient(es_host='es', es_port=12345, es_password=, es_username=, es_conn_timeout=1234, es_url_prefix='es/test', es_send_get_body_as='GET'), 'writeback_index': 'wb', 'writeback_alias': 'wb_a', 'max_query_size': 10000, 'old_query_limit': datetime.timedelta(weeks=1), 'disable_rules_on_error': False, 'scroll_keepalive': '30s'}
    monkeypatch.setattr(config, '_cfg', config.Config(**_conf))