def test_cli_setup_with_hub_during_first_time(runner): clean_config_files() cli_setup_with_hub(runner) iniFile = HostPlatform.get_setting_ini_path() jsonFile = HostPlatform.get_config_file_path() assert os.path.exists(iniFile) assert os.path.exists(jsonFile)
def clean_config_files(): iniFile = HostPlatform.get_setting_ini_path() jsonFile = HostPlatform.get_config_file_path() update_setting_ini_as_firsttime() if os.path.exists(iniFile): os.remove(iniFile) if os.path.exists(jsonFile): os.remove(jsonFile)
def test_cli_setup_during_first_time(runner): iniFile = HostPlatform.get_setting_ini_path() jsonFile = HostPlatform.get_config_file_path() update_setting_ini_as_firsttime() if os.path.exists(iniFile): os.remove(iniFile) if os.path.exists(jsonFile): os.remove(jsonFile) cli_setup(runner) assert os.path.exists(iniFile) assert os.path.exists(jsonFile)
def cleanup(cls): iniFile = HostPlatform.get_setting_ini_path() if os.path.exists(iniFile): os.remove(iniFile)