Skip to content

Commit ef00c58

Browse files
committed
adjust test so it does not load libraries
1 parent 23d9057 commit ef00c58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-qenv_eval_code.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ testthat::test_that("eval_code returns a qenv object with dependency attribute t
160160
testthat::test_that(
161161
"eval_code returns a qenv object with dependency attribute that extracts functions after '<-' part",
162162
{
163-
q3 <- eval_code(qenv(), c("library(survival)", "head(iris)"))
163+
q3 <- eval_code(qenv(), c("nrow(iris)", "head(iris)"))
164164
testthat::expect_identical(
165165
lapply(q3@code, attr, "dependency"),
166166
list(
167-
c("<-", "library", "survival"),
167+
c("<-", "nrow", "iris"),
168168
c("<-", "head", "iris")
169169
)
170170
)

0 commit comments

Comments
 (0)