Skip to content

Commit

Permalink
fix tweak in test wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
nhejazi committed Apr 22, 2021
1 parent 6687dda commit 0444902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-lightgbm.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ task <- sl3_Task$new(cpp_imputed, covariates = covars, outcome = outcome)
test_learner <- function(learner, task, ...) {
# test learner definition: this requires that a learner can be instantiated
# with only default arguments. Not sure if this is a reasonable requirement
learner_obj <- learner$new(...)
print(sprintf("Testing Learner: %s", learner_obj$name))

# test learner training
test_that("Learner can be trained on data", {
skip_on_os("windows")
learner_obj <- learner$new(...)
fit_obj <- learner_obj$train(task)
expect_true(fit_obj$is_trained)
})
Expand Down

0 comments on commit 0444902

Please sign in to comment.