Skip to content

Commit

Permalink
corrige tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lamarche committed Dec 21, 2024
1 parent 394599c commit e68437f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test_telechargerDonnees.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ test_that("Importation type XLSX - output data.frame", {
})
## test sélection des variables
test_that("Sélection de variables dans la BPE", {
expect_true(length(names(telechargerDonnees(donnees = "BPE_ENS", vars = c("REG", "DEP", "DEPCOM", "NB_EQUIP")))) == 4)
expect_true(length(names(telechargerDonnees(donnees = "BPE_ENS", vars = c("GEO", "GEO_OBJECT", "FACILITY_TYPE", "OBS_VALUE")))) == 4)
})
## test dézip gros fichiers
test_that("Utilisation de unzip système", {
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_telechargerFichier.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test_that("Échec du téléchargement pour nom non existant", {
## spécification du dossier de stockage
test_that("Spécification du dossier de stockage", {
dl <- telechargerFichier("BPE_ENS", telDir = "test_dl")
expect_true(file.exists("test_dl/bpe19_ensemble_csv.zip"))
expect_true(file.exists("test_dl/DS_BPE_CSV_FR.zip"))
unlink("test_dl", recursive = TRUE)
})
## test utilisation du cache
Expand Down

0 comments on commit e68437f

Please sign in to comment.