(v1.6.0.9023) new unit test flow

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-05-13 19:31:47 +02:00
1 parent 655b813e99
commit aeea00881e
34 files changed
+408 -355

No files matched your search

+5 -4
View File
@@ -57,9 +57,10 @@ test_that("looking up ab columns works", {
test_that("looking up ab columns works", {
skip_on_cran()
library(dplyr)
# we rely on "grouped_tbl" being a class of grouped tibbles, so:
expect_true(is_null_or_grouped_tbl(example_isolates %>% group_by(hospital_id)))
# we rely on "grouped_tbl" being a class of grouped tibbles, so implement a test that checks for this:
if (require("dplyr")) {
expect_true(is_null_or_grouped_tbl(example_isolates %>% group_by(hospital_id)))
}
})