Skip to content

Commit

Permalink
uncomment helper-state.R re 388
Browse files Browse the repository at this point in the history
  • Loading branch information
rempsyc committed Nov 5, 2023
1 parent 6f31369 commit a685d40
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 a685d40

Please sign in to comment.