Skip to content

Commit

Permalink
updating snapshot to ignore deprecation msg out of our control (#2015)
Browse files Browse the repository at this point in the history
* updating snapshot to ignore deprecation msg out of our control

* Update test-custom_tidiers.R
  • Loading branch information
ddsjoberg authored Oct 2, 2024
1 parent c34ce6d commit c0602c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/custom_tidiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# tidy_bootstrap()

Code
tidy_bootstrap(lm(age ~ grade + marker, trial), exponentiate = TRUE)
df
Output
# A tibble: 4 x 5
term estimate conf.low conf.high p.value
Expand Down
9 changes: 6 additions & 3 deletions tests/testthat/test-custom_tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ test_that("tidy_bootstrap()", {
skip_if_not(is_pkg_installed(c("parameters", "withr"), reference_pkg = "gtsummary"))
withr::local_seed(11235)

expect_snapshot(
lm(age ~ grade + marker, trial) |>
tidy_bootstrap(exponentiate = TRUE)
expect_error(
df <- lm(age ~ grade + marker, trial) |>
tidy_bootstrap(exponentiate = TRUE) |>
suppressWarnings(), # ignores deprecation warning out of our control present on 2024-10-02. Can later be deleted
NA
)
expect_snapshot(df)
})

test_that("tidy_wald_test()", {
Expand Down

0 comments on commit c0602c5

Please sign in to comment.