From ef00c584b843b50ab038bc9c25423e9eebbf52b3 Mon Sep 17 00:00:00 2001 From: m7pr Date: Thu, 7 Nov 2024 15:38:15 +0100 Subject: [PATCH] adjust test so it does not load libraries --- tests/testthat/test-qenv_eval_code.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-qenv_eval_code.R b/tests/testthat/test-qenv_eval_code.R index 6bb9b8d6..cab64a91 100644 --- a/tests/testthat/test-qenv_eval_code.R +++ b/tests/testthat/test-qenv_eval_code.R @@ -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") ) )