Skip to content

Commit

Permalink
fix(test-DiseasySeason): Correctly configure covid_season_v2 in test
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Oct 25, 2024
1 parent 3c962c3 commit 3733ffd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/testthat/test-DiseasySeason.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,11 @@ test_that("$use_covid_season_v2() works", {
observables = observables)

# Default scale
models <- s$get_covid_season_v1()
s$use_covid_season_v1()
models <- s$get_covid_season_v2()
s$use_covid_season_v2()

expect_equal(s$model_t, models$model_t) # nolint: expect_identical_linter. Functions have different environments
expect_equal(s$model_date, models$model_date) # nolint: expect_identical_linter. Functions have different environments
s$use_covid_season_v2()

expect_identical(s$model_t(0), 1)
expect_false(s$model_t(1) == 1)
Expand Down

0 comments on commit 3733ffd

Please sign in to comment.