Skip to content

Commit

Permalink
skip test studies
Browse files Browse the repository at this point in the history
  • Loading branch information
fmichonneau committed Sep 24, 2018
1 parent c64a703 commit 66eea7f
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions tests/testthat/test-studies.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
context("test of studies")
if (FALSE) {

context("test of studies")

############################################################################
## studies_properties ##
Expand Down Expand Up @@ -486,14 +488,16 @@ test_that("list_trees with studies_find_trees and detailed=FALSE", {
expect_true(inherits(lt, "list"))
expect_true(length(names(lt)) >= 5L)
expect_true(all(sapply(lt, length) >= 1L))
})
})

test_that("list_trees with studies_find_trees and detailed=TRUE", {
skip_on_cran()
res <- studies_find_trees(property = "ot:ottTaxonName",
value = "Echinodermata", detailed = TRUE)
lt <- list_trees(res)
expect_true(inherits(lt, "list"))
expect_true(length(names(lt)) >= 5L)
expect_true(all(sapply(lt, length) >= 1L))
})
skip_on_cran()
res <- studies_find_trees(property = "ot:ottTaxonName",
value = "Echinodermata", detailed = TRUE)
lt <- list_trees(res)
expect_true(inherits(lt, "list"))
expect_true(length(names(lt)) >= 5L)
expect_true(all(sapply(lt, length) >= 1L))
})

}

0 comments on commit 66eea7f

Please sign in to comment.