def test_1_change_dataset_to_public_and_import_it_to_arcadia( self, test_org, dataset, arcadia): step("Change dataset to public") dataset.api_update(is_public=True) dataset = DataSet.api_get(dataset.id) assert dataset.is_public, "Dataset was not updated" step("Publish updated dataset") dataset.api_publish() step( "Check that dataset name is visible on the public table list in arcadia" ) table_list = arcadia.get_table_list("public") assert dataset.title in table_list, "Dataset not found in table list in arcadia" step("Create new dataset in arcadia") arcadia_dataset = arcadia.create_dataset("public", dataset.title) assertions.assert_in_with_retry(arcadia_dataset, arcadia.get_dataset_list)
def _assert_updated(self, data_set_id, updated_attribute_name, expected_value): updated_dataset = DataSet.api_get(data_set_id) updated_value = getattr(updated_dataset, updated_attribute_name) assert updated_value == expected_value, "Data set was not updated"