Skip to content

Commit

Permalink
adjust test so it does not load libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Nov 7, 2024
1 parent 23d9057 commit ef00c58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-qenv_eval_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ testthat::test_that("eval_code returns a qenv object with dependency attribute t
testthat::test_that(
"eval_code returns a qenv object with dependency attribute that extracts functions after '<-' part",
{
q3 <- eval_code(qenv(), c("library(survival)", "head(iris)"))
q3 <- eval_code(qenv(), c("nrow(iris)", "head(iris)"))
testthat::expect_identical(
lapply(q3@code, attr, "dependency"),
list(
c("<-", "library", "survival"),
c("<-", "nrow", "iris"),
c("<-", "head", "iris")
)
)
Expand Down

0 comments on commit ef00c58

Please sign in to comment.