Skip to content

Commit

Permalink
Merge pull request #269 from tidymodels/update-snapshots
Browse files Browse the repository at this point in the history
Update snapshots
  • Loading branch information
EmilHvitfeldt authored Nov 14, 2024
2 parents 8902b3e + 805a78a commit f9d081a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/pre-action-case-weights.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
predict(wf, df)
Condition
Error in `validate_column_names()`:
! The following required columns are missing: 'w'.
! The required column "w" is missing.

# case weights + recipe requires extra roles at predict time by default

Code
predict(wf, df)
Condition
Error in `validate_column_names()`:
! The following required columns are missing: 'w'.
! The required column "w" is missing.

# case weights + recipe doesn't allow the recipe to drop the case weights column

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test_that("can compute required packages of a workflow - recipes", {
mod <- parsnip::linear_reg()
mod <- parsnip::set_engine(mod, "lm")

step <- recipes::step("workflows_test")
step <- recipes::step("workflows_test", trained = FALSE, id = "", skip = FALSE, role = NA)

rec <- recipes::recipe(mpg ~ cyl, mtcars)
rec <- recipes::add_step(rec, step)
Expand Down

0 comments on commit f9d081a

Please sign in to comment.