Skip to content

Commit

Permalink
Complete unit tests of updateGeneralSettings()
Browse files Browse the repository at this point in the history
  • Loading branch information
boitardn committed Jan 22, 2024
1 parent 85fa52d commit a71ba5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/testthat/test-updateGeneralSettings.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ sapply(studies, function(study) {

test_that("Update a general parameter", {

# year-by-year
expect_true(getOption("antares")$parameters$general$`year-by-year`)
updateGeneralSettings(year.by.year = FALSE)

expect_false(getOption("antares")$parameters$general$`year-by-year`)

# geographic-trimming
expect_true(getOption("antares")$parameters$general$`geographic-trimming`)
updateGeneralSettings(geographic.trimming = FALSE)
expect_false(getOption("antares")$parameters$general$`geographic-trimming`)
})

# remove temporary study
Expand Down

0 comments on commit a71ba5d

Please sign in to comment.