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'
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"