Skip to content

Commit

Permalink
uncomment helper-state.R re 388 (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
rempsyc authored Nov 13, 2023
1 parent d21dd4a commit 3b43c88
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
27 changes: 13 additions & 14 deletions tests/testthat/helper-state.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# testthat::set_state_inspector(function() {
# list(
# attached = search(),
# connections = nrow(showConnections()),
# cwd = getwd(),
# envvars = Sys.getenv(),
# libpaths = .libPaths(),
# locale = Sys.getlocale(),
# options = .Options,
# packages = .packages(all.available = TRUE),
# NULL
# )
# })
##
testthat::set_state_inspector(function() {
list(
attached = search(),
connections = nrow(showConnections()),
cwd = getwd(),
envvars = Sys.getenv(),
libpaths = .libPaths(),
locale = Sys.getlocale(),
options = .Options,
packages = .packages(all.available = TRUE),
NULL
)
})
1 change: 1 addition & 0 deletions tests/testthat/test-report.brmsfit.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ test_that("report.brms", {
expect_s3_class(summary(r), "character")
expect_s3_class(as.data.frame(r), "data.frame")

set.seed(333)
expect_snapshot(variant = "windows", report(model, verbose = FALSE))

expect_identical(
Expand Down

0 comments on commit 3b43c88

Please sign in to comment.