Exemplo n.º 1
0
def _should_run_fusion(config):
    CALLER = 'tophat'
    return config_utils.should_run_fusion(CALLER, config)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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