Skip to content

Commit

Permalink
changes to avoid test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
topepo committed Dec 19, 2024
1 parent 626aaa6 commit 2bf534b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ library(tune)

if (identical(Sys.getenv("NOT_CRAN"), "true")) {
# emulates `testthat:::on_cran()`
if (requireNamespace("xml2")) {
if (rlang::is_installed("xml2")) {
test_check(
"tune",
reporter = MultiReporter$new(
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-last-fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ test_that("can use `last_fit()` with a workflow - postprocessor (requires traini

test_that("can use `last_fit()` with a workflow - postprocessor (does not require training)", {
skip_if_not_installed("tailor", minimum_version = "0.0.0.9001")
skip_if_not_installed("probably", minimum_version = "1.0.3.9000")

y <- seq(0, 7, .001)
dat <- data.frame(y = y, x = y + (y-3)^2)
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-resample.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ test_that("can use `fit_resamples()` with a workflow - postprocessor (requires t

test_that("can use `fit_resamples()` with a workflow - postprocessor (no training)", {
skip_if_not_installed("tailor", minimum_version = "0.0.0.9001")
skip_if_not_installed("probably", minimum_version = "1.0.3.9000")

y <- seq(0, 7, .001)
dat <- data.frame(y = y, x = y + (y-3)^2)
Expand Down

0 comments on commit 2bf534b

Please sign in to comment.