Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Sep 25, 2023
1 parent 7070020 commit c15bf48
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/testthat/test-model-pathfinder.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,6 @@ test_that("pathfinder() method runs when the stan file is removed", {
)
})

#test_that("pathfinder() prints informational messages depening on show_exceptions", {
mod_info_msg <- testing_model("info_message")
#TODO Pareto K?
# expect_pathfinder_output(
# expect_message(
# mod_info_msg$pathfinder(),
# "which often indicates model misspecification"
# )
# )
# expect_pathfinder_output(
# expect_message(mod_info_msg$pathfinder(show_exceptions = FALSE), regexp = NA)
# )
#})

test_that("no error when checking estimates after failure", {
fit <- cmdstanr_example("schools", method = "pathfinder", seed = 123) # optim always fails for this
expect_silent(fit$summary()) # no error
Expand Down

0 comments on commit c15bf48

Please sign in to comment.