Skip to content

Commit

Permalink
fix(test-combineasy): Fix broken module loading test
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Feb 7, 2025
1 parent afac1b8 commit f11dfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-combineasy.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ test_that("`combineasy()` can create a model ensembles using parameters", {

# Check modules are unset (i.e. NULL)
module_names <- c("activity", "season", "observables", "variant")
loaded_modules <- purrr::map(modules, \(module) purrr::map(ensemble, \(model) purrr::pluck(model, module))) |>
loaded_modules <- purrr::map(module_names, \(module) purrr::map(ensemble, \(model) purrr::pluck(model, module))) |>
purrr::list_flatten()
expect_true(purrr::every(unique(loaded_modules), is.null))

Expand Down

0 comments on commit f11dfe0

Please sign in to comment.