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)
  
})
rte-antares-rpackage/antaresEditObject documentation built on May 3, 2024, 10:33 a.m.