def test_save_config_creates_yaml(upload_scout_api: UploadScoutAPI, mip_load_config: ScoutLoadConfig, tmp_file): """Tests that the file created by save_config_file create a yaml""" # GIVEN a scout_config dict and a path to save it on # WHEN calling method to save config upload_scout_api.save_config_file(upload_config=mip_load_config, file_path=tmp_file) # THEN the should be of yaml type assert _file_is_yaml(tmp_file)
def test_save_config_creates_file(upload_scout_api: UploadScoutAPI, mip_load_config: ScoutLoadConfig, tmp_file): """ "Tests that save config creates a file""" # GIVEN a scout_config object and a path to save it on # WHEN calling method to save config upload_scout_api.save_config_file(upload_config=mip_load_config, file_path=tmp_file) # THEN the config should exist on disk assert _file_exists_on_disk(tmp_file)