From a0a581c1e0e9330dfb40ebf95b6bb13aed2c3dad Mon Sep 17 00:00:00 2001 From: Juliette Engelaere-Lefebvre Date: Wed, 19 Jul 2023 12:24:04 +0200 Subject: [PATCH] - Correction du test convert_to_dsfr() qui ne passait pas chez moi --- dev/tools/flat_convert_to_dsfr.Rmd | 2 +- tests/testthat/test-convert_to_dsfr.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/tools/flat_convert_to_dsfr.Rmd b/dev/tools/flat_convert_to_dsfr.Rmd index 14bbcd23..e2fa5669 100644 --- a/dev/tools/flat_convert_to_dsfr.Rmd +++ b/dev/tools/flat_convert_to_dsfr.Rmd @@ -238,7 +238,7 @@ test_that("convert_to_dsfr works", { expect_error(convert_to_dsfr(path = file.path(mydir, "R"), version = NULL)) #' @description Retourne une erreur si le tableau de correspondance n'existe pas pour la version specifiee - expect_error(convert_to_dsfr(path = file.path(mydir, "R"), version = "A.A.A.A"), msg = "Le dossier 'vA.A.A.A' n'existe pas") + expect_error(convert_to_dsfr(path = file.path(mydir, "R"), version = "A.A.A.A"), "Le dossier 'vA.A.A.A' n existe pas") expect_error(convert_to_dsfr(path = file.path(mydir, "R")), regexp = NA) app_ui <- readLines(file.path(mydir, "R", "app_ui.R")) diff --git a/tests/testthat/test-convert_to_dsfr.R b/tests/testthat/test-convert_to_dsfr.R index d171c050..df2c3d0a 100644 --- a/tests/testthat/test-convert_to_dsfr.R +++ b/tests/testthat/test-convert_to_dsfr.R @@ -22,7 +22,7 @@ test_that("convert_to_dsfr works", { expect_error(convert_to_dsfr(path = file.path(mydir, "R"), version = NULL)) #' @description Retourne une erreur si le tableau de correspondance n'existe pas pour la version specifiee - expect_error(convert_to_dsfr(path = file.path(mydir, "R"), version = "A.A.A.A"), msg = "Le dossier 'vA.A.A.A' n'existe pas") + expect_error(convert_to_dsfr(path = file.path(mydir, "R"), version = "A.A.A.A"), "Le dossier 'vA.A.A.A' n existe pas") expect_error(convert_to_dsfr(path = file.path(mydir, "R")), regexp = NA) app_ui <- readLines(file.path(mydir, "R", "app_ui.R"))