Skip to content

Commit

Permalink
deactivate ILO_legacy tests (unauthorized)
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Dec 12, 2024
1 parent 3ca4591 commit c24740d
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions tests/testthat/test_Main_Helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -295,26 +295,27 @@ test_that("UNSD - data",{

#ILO_Legacy (UN-ILO)
#------------

#-> datastructure
test_that("ILO - datastructure",{
testthat::skip_on_cran()
sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "datastructure", resourceId = "YI_ALB_EAP_TEAP_SEX_AGE_NB")
if(!is.null(sdmx)){
expect_is(sdmx, "SDMXDataStructureDefinition")
}
})

#-> data
test_that("ILO - data",{
testthat::skip_on_cran()
sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "data",
flowRef = "DF_CPI_FRA_CPI_TCPI_COI_RT", key = "ALL", key.mode = "SDMX",
start = "2010-01-01", end = "2014-12-31")
if(!is.null(sdmx)){
expect_is(sdmx, "SDMXGenericData")
}
})
#gives Unauthorized 403 status codes now

# #-> datastructure
# test_that("ILO - datastructure",{
# testthat::skip_on_cran()
# sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "datastructure", resourceId = "YI_ALB_EAP_TEAP_SEX_AGE_NB")
# if(!is.null(sdmx)){
# expect_is(sdmx, "SDMXDataStructureDefinition")
# }
# })
#
# #-> data
# test_that("ILO - data",{
# testthat::skip_on_cran()
# sdmx <- readSDMX(providerId = "ILO_Legacy", resource = "data",
# flowRef = "DF_CPI_FRA_CPI_TCPI_COI_RT", key = "ALL", key.mode = "SDMX",
# start = "2010-01-01", end = "2014-12-31")
# if(!is.null(sdmx)){
# expect_is(sdmx, "SDMXGenericData")
# }
# })

#ILO (UN-ILO)
#------------
Expand Down

0 comments on commit c24740d

Please sign in to comment.