Пример #1
0
def _should_run_fusion(config):
    CALLER = 'tophat'
    return config_utils.should_run_fusion(CALLER, config)
Пример #2
0
def test_should_not_run_fusion_when_fusion_mode_and_wrong_caller(config):
    result = config_utils.should_run_fusion('OTHER', config)
    assert result is False
Пример #3
0
def test_should_run_fusion_when_fusion_mode_and_right_caller(config):
    result = config_utils.should_run_fusion('TEST', config)
    assert result is True
Пример #4
0
def test_should_not_run_fusion_when_fusion_mode_false(config):
    result = config_utils.should_run_fusion(mock.Mock(), config)
    assert result is False
Пример #5
0
def test_should_run_fusion_when_fusion_mode_and_default_caller(config):
    result = config_utils.should_run_fusion(mock.Mock(), config)
    assert result is True
Пример #6
0
def _should_run_fusion(config):
    CALLER = 'star'
    return config_utils.should_run_fusion(CALLER, config)
def test_should_run_fusion_when_fusion_mode_and_right_caller(config):
    result = config_utils.should_run_fusion('TEST', config)
    assert result is True
def test_should_not_run_fusion_when_fusion_mode_and_wrong_caller(config):
    result = config_utils.should_run_fusion('OTHER', config)
    assert result is False
def test_should_run_fusion_when_fusion_mode_and_default_caller(config):
    result = config_utils.should_run_fusion(mock.Mock(), config)
    assert result is True
Пример #10
0
def test_should_not_run_fusion_when_fusion_mode_false(config):
    result = config_utils.should_run_fusion(mock.Mock(), config)
    assert result is False