Skip to content

Commit defae03

Browse files
adapte test
1 parent 60fe8d3 commit defae03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test_liste_donnees.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test_that("pas de valeurs incongrues", {
2323

2424
# lien (motif, pas existence)
2525
url_pattern <- "^https://www.insee.fr/fr/statistiques/fichier/\\d{5,}/.+\\.(zip|xls|xlsx)$"
26-
api_url_pattern <- "^https://api.insee.fr/entreprises/sirene/sire[nt](/(liensSuccession|nonDiffusibles))?$"
26+
api_url_pattern <- "^https://api.insee.fr/entreprises/sirene(/V3.11)?/sire[nt](/(liensSuccession|nonDiffusibles))?$"
2727
expect_true(
2828
all(grepl(paste0(url_pattern, "|", api_url_pattern), df_ld$lien))
2929
)

0 commit comments

Comments
 (0)