tests/testthat/test-updateOutputSettings.R

context("Function updateOuputSettings")


sapply(studies, function(study) {
  
  setup_study(study, sourcedir)
  opts <- antaresRead::setSimulationPath(studyPath, "input")
  
  
  
  test_that("Update an output parameter", {
    
    updateOutputSettings(synthesis = FALSE)
    
    expect_false(getOption("antares")$parameters$output$synthesis)
    
  })
  
  # remove temporary study
  unlink(x = file.path(pathstd, "test_case"), recursive = TRUE)
  
})

Try the antaresEditObject package in your browser

Any scripts or data that you put into this service are public.

antaresEditObject documentation built on June 22, 2024, 9:39 a.m.