Exemple #1
0
def test_process_log_actions_invalid():
    with pytest.raises(config.ConfigError):
        config._process_log_actions({'action': 'test'}, 'test', set(),
                                    {'foo': object()})
Exemple #2
0
def test_process_log_actions_invalid():
    with pytest.raises(config.ConfigError):
        config._process_log_actions({'action': 'test'}, 'test', set(), {'foo': object()})
Exemple #3
0
def test_process_log_actions(data, expected):
    available = {'foo': object(), 'bar': object()}
    auto_actions = {'bar'}
    assert config._process_log_actions(data, 'test', auto_actions,
                                       available) == expected
Exemple #4
0
def test_process_log_actions(data, expected):
    available = {'foo': object(), 'bar': object()}
    auto_actions = {'bar'}
    assert config._process_log_actions(data, 'test', auto_actions, available) == expected