test_that("update_attachment works", {
skip_unless_dev_env()
att_title <- glue::glue("didoscalim df update_attachment works {generate_random_string()}")
dataset <- add_dataset(
title = "didoscalim ds get_attachment works",
description = "test",
topic = "Transports",
frequency = "unknown"
)
att <- add_attachment(
dataset = dataset,
title = att_title,
description = "test",
file_name = "dido-csv-simple.csv"
)
att$description <- "une autre description"
att <- update_attachment(att)
expect_equal(att$description, "une autre description")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.