tests/testthat/test.bq.meta.R

context("BigQuery Meta")

test_that("Table description is updated", {
  tbl <- bqInitiateTable(
    table = "test_description_update",
    schema.file = "bq-table-schema.json"
  )
  bqUpdateTableDescription(
    table = "test_description_update",
    description = "test"
  )

  meta <- bigrquery::bq_table_meta(tbl)
  expect_equal(meta$description, "test")
  bqDeleteTable("test_description_update")
})
madedotcom/retl documentation built on Sept. 19, 2022, 3:28 a.m.