tests/testthat/test-config.R

context("config")

if (identical(Sys.getenv("TRAVIS"), "true")) {
  test_that("gcloud_config() can retrieve account and project from travis", {
    config <- gcloud_config()

    expect_true(!is.null(config$account))
    expect_true(!is.null(config$project))
  })
}
rstudio/cloudml documentation built on Aug. 30, 2018, 5:36 a.m.