Skip to content

Commit 5a0b421

Browse files
committed
Replace skip_on_ci() with skip_on_cran() in tests for acro_crosstab and acro_custom_output
1 parent cd934da commit 5a0b421

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/testthat/test-acro_glm.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,23 @@ df$finance <- df$finance - 1
1616
# formula to fit
1717
formula <- "finance ~ children"
1818
test_that("acro_glm without initialising ACRO object first", {
19-
skip_on_ci()
2019
acroEnv$ac <- NULL
2120
expect_error(acro_glm(formula = formula, data = df, family = "probit"), "ACRO has not been initialised. Please first call acro_init()")
2221
})
2322
test_that("acro_glm with probit as a family works", {
24-
skip_on_ci()
23+
testthat::skip_on_cran()
2524
acro_init()
2625
model <- acro_glm(formula = formula, data = df, family = "probit")
2726
expect_s3_class(model, "statsmodels.iolib.summary.Summary")
2827
})
2928
test_that("acro_glm with logit as a family works", {
30-
skip_on_ci()
29+
testthat::skip_on_cran()
3130
acro_init()
3231
model <- acro_glm(formula = formula, data = df, family = "logit")
3332
expect_s3_class(model, "statsmodels.iolib.summary.Summary")
3433
})
3534
test_that("acro_glm through an error if the family is not recognised", {
36-
skip_on_ci()
35+
testthat::skip_on_cran()
3736
acro_init()
3837
expect_error(acro_glm(formula = formula, data = df, family = "mean"), "Invalid family. Options for family are: logit or probit")
3938
})

0 commit comments

Comments
 (0)