Skip to content

Commit

Permalink
- Correction du test convert_to_dsfr() qui ne passait pas chez moi
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelaere committed Jul 26, 2023
1 parent 8e14801 commit a0a581c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/tools/flat_convert_to_dsfr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-convert_to_dsfr.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit a0a581c

Please sign in to comment.