tests/testserver/test_ts_germplasm_details_study.R

context("ts germplasm_details_study")
message("Call is deprecated.")

# con <- ba_db()$testserver
#
# test_that("Germplasm_details study results are present", {
#
#   res <- ba_germplasm_details_study(con = con, studyDbId = "1001")
#   expect_that(nrow(res) == 2, is_true())
#
# })
#
# test_that("Germplasm_details out formats work", {
#
#   res <- ba_germplasm_details_study(con = con, studyDbId = "1001", rclass = "json")
#   expect_that("json" %in% class(res), is_true())
#
#   res <- ba_germplasm_details_study(con = con, studyDbId = "1001", rclass = "list")
#   expect_that("list" %in% class(res), is_true())
#
#   res <- ba_germplasm_details_study(con = con, studyDbId = "1001", rclass = "data.frame")
#   expect_that("data.frame" %in% class(res), is_true())
#
# })
c5sire/brapi documentation built on Oct. 17, 2019, 11:45 a.m.