Skip to content

Commit a482442

Browse files
authored
remove tune_check() test helper (#870)
1 parent b5b03ea commit a482442

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

tests/testthat/helpers.R

-10
This file was deleted.

tests/testthat/test_extract.R

-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
test_that('extract', {
2-
skip_if(tune_check())
3-
42
x <- linear_reg() %>% set_engine("lm") %>% fit(mpg ~ ., data = mtcars)
53
x_no_spec <- x
64
x_no_spec$spec <- NULL
@@ -18,7 +16,6 @@ test_that('extract', {
1816

1917
test_that('extract parameter set from model with no parameters', {
2018
skip_on_covr()
21-
skip_if(tune_check())
2219

2320
lm_model <- linear_reg() %>% set_engine("lm")
2421

@@ -29,7 +26,6 @@ test_that('extract parameter set from model with no parameters', {
2926

3027
test_that('extract parameter set from model with main and engine parameters', {
3128
skip_on_covr()
32-
skip_if(tune_check())
3329

3430
bst_model <-
3531
boost_tree(mode = "classification", trees = hardhat::tune("funky name \n")) %>%
@@ -62,7 +58,6 @@ test_that('extract parameter set from model with no loaded implementation', {
6258

6359
test_that('extract single parameter from model with no parameters', {
6460
skip_on_covr()
65-
skip_if(tune_check())
6661

6762
lm_model <- linear_reg() %>% set_engine("lm")
6863

@@ -73,7 +68,6 @@ test_that('extract single parameter from model with no parameters', {
7368

7469
test_that('extract single parameter from model with main and engine parameters', {
7570
skip_on_covr()
76-
skip_if(tune_check())
7771

7872
bst_model <-
7973
boost_tree(mode = "classification", trees = hardhat::tune("funky name \n")) %>%
@@ -91,7 +85,6 @@ test_that('extract single parameter from model with main and engine parameters',
9185

9286
test_that("extract_parameter_dials doesn't error if namespaced args are used", {
9387
skip_on_covr()
94-
skip_if(tune_check())
9588

9689
bst_model <-
9790
logistic_reg(mode = "classification", penalty = hardhat::tune()) %>%

0 commit comments

Comments
 (0)