Esempio n. 1
0
def _should_run_fusion(config):
    CALLER = 'tophat'
    return config_utils.should_run_fusion(CALLER, config)
Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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
def test_should_not_run_fusion_when_fusion_mode_false(config):
    result = config_utils.should_run_fusion(mock.Mock(), config)
    assert result is False