context("ts studies_seasons")
con <- ba_db()$testserver
test_that("Studies_seasons are present", {
res <- ba_studies_seasons(con = con, year = 2011)
expect_that( nrow(res) > 0, is_true())
})
test_that("Output is transformed", {
res <- ba_studies_seasons(con = con, year = 2011, rclass = "json")
expect_that("json" %in% class(res), is_true())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.