Skip to content

Commit

Permalink
run tests only on latest insight
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 4, 2024
1 parent ec6eeb1 commit ed4af98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-check_collinearity.R
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ test_that("check_collinearity, hurdle/zi models w/o zi-formula", {
})

test_that("check_collinearity, invalid data", {
skip_if(packageVersion("insight") < "0.19.8.2")
dd <- data.frame(y = as.difftime(0:5, units = "days"))
m1 <- lm(y ~ 1, data = dd)
expect_message(expect_null(check_collinearity(m1)), "Can't extract variance-covariance matrix")
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-check_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ test_that("`check_outliers()` works if convergence issues", {
})

test_that("`check_model()` for invalid models", {
skip_if(packageVersion("insight") < "0.19.8.2")
dd <- data.frame(y = as.difftime(0:5, units = "days"))
m1 <- lm(y ~ 1, data = dd)
expect_error(check_model(m1))
Expand Down

0 comments on commit ed4af98

Please sign in to comment.