tests/sweetpotatobase/test_sp_germplasm_details_study.R

context("sp germplasm_details_study")

con <- ba_db()$sweetpotatobase

# TODO review tests against Sweetpotatobase

# test_that("Germplasm_details study results are present", {
#
#   res <- ba_studies_germplasm_details(con = con, studyDbId = "1207")
#   expect_true(nrow(res) >= 8)
#
# })
#
# test_that("Germplasm_details out formats work", {
#
#   res <- ba_studies_germplasm_details(con = con, studyDbId = "1207", rclass = "json")
#   expect_that("json" %in% class(res), is_true())
#
#   res <- ba_studies_germplasm_details(con = con, studyDbId = "1207", rclass = "list")
#   expect_that("list" %in% class(res), is_true())
#
#   res <- ba_studies_germplasm_details(con = con, studyDbId = "1207", rclass = "data.frame")
#   expect_that("data.frame" %in% class(res), is_true())
#
# })
CIP-RIU/brapi documentation built on Oct. 17, 2019, 2 p.m.