Beispiel #1
0
def test_nonexist_configuration_file():
    _set_flyte_config_file(
        _os.path.join(_os.path.dirname(_os.path.realpath(__file__)),
                      'configs/good.config'))
    with _TemporaryConfiguration('/foo/bar'):
        assert _common.CONFIGURATION_SINGLETON.get_string(
            'sdk', 'workflow_packages') is None
    assert _common.CONFIGURATION_SINGLETON.get_string('sdk', 'workflow_packages') == \
        'this.module,that.module'
Beispiel #2
0
def test_nonexist_configuration_file():
    _set_flyte_config_file(
        _os.path.join(_os.path.dirname(_os.path.realpath(__file__)),
                      "configs/good.config"))
    with _TemporaryConfiguration("/foo/bar"):
        assert _common.CONFIGURATION_SINGLETON.get_string(
            "sdk", "workflow_packages") is None
    assert _common.CONFIGURATION_SINGLETON.get_string(
        "sdk", "workflow_packages") == "this.module,that.module"