def test_list_model_evaluations(): model = ensure_model_ready() mes = automl_tables_model.list_model_evaluations(PROJECT, REGION, model.display_name) assert len(mes) > 0 for me in mes: assert me.name.startswith(model.name)
def test_get_model_evaluations(): model = ensure_model_ready() me = automl_tables_model.list_model_evaluations(PROJECT, REGION, model.display_name)[0] mep = automl_tables_model.get_model_evaluation( PROJECT, REGION, model.name.rpartition('/')[2], me.name.rpartition('/')[2]) assert mep.name == me.name