From 8ef4d5cf6e142b3031b5886a0b0a6ac9a2155810 Mon Sep 17 00:00:00 2001 From: Lextuga007 Date: Thu, 21 Mar 2024 14:58:58 +0000 Subject: [PATCH 1/3] Removed postcode column from vignette as doesn't come through in data --- NHSRpopulation.Rproj | 19 +++++++++++++++++++ R/get_data.R | 6 +++--- vignettes/NHSRpopulation.Rmd | 1 - vignettes/NHSRpopulation.Rmd.orig | 7 +++---- 4 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 NHSRpopulation.Rproj diff --git a/NHSRpopulation.Rproj b/NHSRpopulation.Rproj new file mode 100644 index 0000000..49f2092 --- /dev/null +++ b/NHSRpopulation.Rproj @@ -0,0 +1,19 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX + +StripTrailingWhitespace: Yes + +BuildType: Package +PackageUseDevtools: Yes +PackageInstallArgs: --no-multiarch --with-keep.source diff --git a/R/get_data.R b/R/get_data.R index aa0f4f8..c59428d 100644 --- a/R/get_data.R +++ b/R/get_data.R @@ -71,7 +71,7 @@ get_data <- function(data, ## Generate specific text for the url if (is.atomic(data) && is_postcode_check == 0 && - is_lsoa_check > 0) { + is_lsoa_check > 0) { text <- paste0( "LSOA11CD IN ('", paste(data, @@ -79,7 +79,7 @@ get_data <- function(data, ), "')" ) } else if (is.data.frame(data) && is_postcode_check == 0 && - is_lsoa_check > 0) { + is_lsoa_check > 0) { text <- paste0( "LSOA11CD IN ('", paste(data[[column]], @@ -113,7 +113,7 @@ get_data <- function(data, ## IMD data if (is_postcode_check == 0 && is_lsoa_check > 0 && - is.data.frame(data)) { + is.data.frame(data)) { data_out <- imd_api( text = text, req = req diff --git a/vignettes/NHSRpopulation.Rmd b/vignettes/NHSRpopulation.Rmd index d9c75bc..ddeac46 100644 --- a/vignettes/NHSRpopulation.Rmd +++ b/vignettes/NHSRpopulation.Rmd @@ -42,7 +42,6 @@ Then, using the `get_data()` function for a vector: # Execution halted NHSRpopulation::get_data(postcodes) |> dplyr::select( - postcode, new_postcode, result_type, lsoa_code diff --git a/vignettes/NHSRpopulation.Rmd.orig b/vignettes/NHSRpopulation.Rmd.orig index b048b43..648259b 100644 --- a/vignettes/NHSRpopulation.Rmd.orig +++ b/vignettes/NHSRpopulation.Rmd.orig @@ -43,7 +43,6 @@ Then, using the `get_data()` function for a vector: # Execution halted NHSRpopulation::get_data(postcodes) |> dplyr::select( - postcode, new_postcode, result_type, lsoa_code @@ -147,11 +146,11 @@ NHSRpopulation::get_data(lsoa_tb, ## Getting IMD data from postcodes If the data has postcodes (which automatically connects to the postcode API) and -IMD information is wanted, the argument/parameter `url_type == "imd"` will +IMD information is wanted, the argument/parameter `url_type == "imd"` will override the returned data to IMD. ```{r} -NHSRpopulation::get_data(tibble_postcodes, +NHSRpopulation::get_data(tibble_postcodes, url_type = "imd") ``` @@ -159,7 +158,7 @@ NHSRpopulation::get_data(tibble_postcodes, Note that the postcode data is still validated. ```{r} -NHSRpopulation::get_data(tibble_postcodes, +NHSRpopulation::get_data(tibble_postcodes, url_type = "imd", fix_invalid = FALSE) ``` From 7488ae736bb34f7c334d18b9f3328e802966b6a2 Mon Sep 17 00:00:00 2001 From: Lextuga007 Date: Thu, 21 Mar 2024 14:59:36 +0000 Subject: [PATCH 2/3] Added tests for where data is from postcodes but returns imd as currently adds columns to the end --- R/get_data.R | 10 ++++ .../postcodes-b93a9c-dca3bd-POST.json | 59 +++++++++++++++++++ .../postcodes-c36e7a-POST.json | 52 ++++++++++++++++ .../postcodes-e836c0-POST.json | 52 ++++++++++++++++ .../HD1%202U/autocomplete-b93a9c.json | 6 ++ .../postcodes/HD1%202UT/validate.json | 4 ++ .../postcodes/HD1%202UU/validate.json | 4 ++ .../postcodes/HD1%202UV/validate.json | 4 ++ .../terminated_postcodes/HD1%202UT.json | 10 ++++ .../terminated_postcodes/HD1%202UV.R | 20 +++++++ tests/testthat/test-get_data.R | 35 +++++++++++ 11 files changed, 256 insertions(+) create mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json create mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes-c36e7a-POST.json create mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes-e836c0-POST.json create mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json create mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UT/validate.json create mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UU/validate.json create mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UV/validate.json create mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UT.json create mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UV.R diff --git a/R/get_data.R b/R/get_data.R index c59428d..8d2e489 100644 --- a/R/get_data.R +++ b/R/get_data.R @@ -38,6 +38,9 @@ get_data <- function(data, value <- NULL lsoa11cd <- NULL lsoa_code <- NULL + imd_decile <- NULL + imd_rank <- NULL + imd_score <- NULL # Check there is corresponding type data somewhere in data frame # Use this to allow for other column names to be used in later code @@ -150,6 +153,13 @@ get_data <- function(data, dplyr::left_join( data_out, dplyr::join_by(lsoa_code == lsoa11cd) + ) |> + dplyr::select( + 1:3, + imd_decile, + imd_rank, + imd_score, + dplyr::everything() ) } else if (exists("pc_data") && url_type == "postcode") { pc_data diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json new file mode 100644 index 0000000..5993812 --- /dev/null +++ b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json @@ -0,0 +1,59 @@ +{ + "status": 200, + "result": [ + { + "query": { + "limit": "1", + "longitude": -1.780629, + "latitude": 53.643909 + }, + "result": [ + { + "postcode": "HD1 2RD", + "quality": 1, + "eastings": 414639, + "northings": 416430, + "country": "England", + "nhs_ha": "Yorkshire and the Humber", + "longitude": -1.780038, + "latitude": 53.644178, + "european_electoral_region": "Yorkshire and The Humber", + "primary_care_trust": "Kirklees", + "region": "Yorkshire and The Humber", + "lsoa": "Kirklees 029D", + "msoa": "Kirklees 029", + "incode": "2RD", + "outcode": "HD1", + "parliamentary_constituency": "Huddersfield", + "parliamentary_constituency_2024": "Huddersfield", + "admin_district": "Kirklees", + "parish": "Kirklees, unparished area", + "admin_county": null, + "date_of_introduction": "198001", + "admin_ward": "Newsome", + "ced": null, + "ccg": "NHS West Yorkshire", + "nuts": "Kirklees", + "pfa": "West Yorkshire", + "codes": { + "admin_district": "E08000034", + "admin_county": "E99999999", + "admin_ward": "E05001410", + "parish": "E43000188", + "parliamentary_constituency": "E14000756", + "parliamentary_constituency_2024": "E14001297", + "ccg": "E38000254", + "ccg_id": "X2C4Y", + "ced": "E99999999", + "nuts": "TLE44", + "lsoa": "E01011107", + "msoa": "E02002299", + "lau2": "E08000034", + "pfa": "E23000010" + }, + "distance": 49.23421539 + } + ] + } + ] +} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-c36e7a-POST.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-c36e7a-POST.json new file mode 100644 index 0000000..608c657 --- /dev/null +++ b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-c36e7a-POST.json @@ -0,0 +1,52 @@ +{ + "status": 200, + "result": [ + { + "query": "HD1 2UU", + "result": { + "postcode": "HD1 2UU", + "quality": 1, + "eastings": 414433, + "northings": 416422, + "country": "England", + "nhs_ha": "Yorkshire and the Humber", + "longitude": -1.783154, + "latitude": 53.644112, + "european_electoral_region": "Yorkshire and The Humber", + "primary_care_trust": "Kirklees", + "region": "Yorkshire and The Humber", + "lsoa": "Kirklees 042D", + "msoa": "Kirklees 042", + "incode": "2UU", + "outcode": "HD1", + "parliamentary_constituency": "Huddersfield", + "parliamentary_constituency_2024": "Huddersfield", + "admin_district": "Kirklees", + "parish": "Kirklees, unparished area", + "admin_county": null, + "date_of_introduction": "198604", + "admin_ward": "Newsome", + "ced": null, + "ccg": "NHS West Yorkshire", + "nuts": "Kirklees", + "pfa": "West Yorkshire", + "codes": { + "admin_district": "E08000034", + "admin_county": "E99999999", + "admin_ward": "E05001410", + "parish": "E43000188", + "parliamentary_constituency": "E14000756", + "parliamentary_constituency_2024": "E14001297", + "ccg": "E38000254", + "ccg_id": "X2C4Y", + "ced": "E99999999", + "nuts": "TLE44", + "lsoa": "E01011229", + "msoa": "E02002312", + "lau2": "E08000034", + "pfa": "E23000010" + } + } + } + ] +} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-e836c0-POST.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-e836c0-POST.json new file mode 100644 index 0000000..5bfffb7 --- /dev/null +++ b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-e836c0-POST.json @@ -0,0 +1,52 @@ +{ + "status": 200, + "result": [ + { + "query": "HD1 2UD", + "result": { + "postcode": "HD1 2UD", + "quality": 1, + "eastings": 414371, + "northings": 416317, + "country": "England", + "nhs_ha": "Yorkshire and the Humber", + "longitude": -1.784097, + "latitude": 53.64317, + "european_electoral_region": "Yorkshire and The Humber", + "primary_care_trust": "Kirklees", + "region": "Yorkshire and The Humber", + "lsoa": "Kirklees 042D", + "msoa": "Kirklees 042", + "incode": "2UD", + "outcode": "HD1", + "parliamentary_constituency": "Huddersfield", + "parliamentary_constituency_2024": "Huddersfield", + "admin_district": "Kirklees", + "parish": "Kirklees, unparished area", + "admin_county": null, + "date_of_introduction": "198001", + "admin_ward": "Newsome", + "ced": null, + "ccg": "NHS West Yorkshire", + "nuts": "Kirklees", + "pfa": "West Yorkshire", + "codes": { + "admin_district": "E08000034", + "admin_county": "E99999999", + "admin_ward": "E05001410", + "parish": "E43000188", + "parliamentary_constituency": "E14000756", + "parliamentary_constituency_2024": "E14001297", + "ccg": "E38000254", + "ccg_id": "X2C4Y", + "ced": "E99999999", + "nuts": "TLE44", + "lsoa": "E01011229", + "msoa": "E02002312", + "lau2": "E08000034", + "pfa": "E23000010" + } + } + } + ] +} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json new file mode 100644 index 0000000..f87fee6 --- /dev/null +++ b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json @@ -0,0 +1,6 @@ +{ + "status": 200, + "result": [ + "HD1 2UD" + ] +} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UT/validate.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UT/validate.json new file mode 100644 index 0000000..3279e5a --- /dev/null +++ b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UT/validate.json @@ -0,0 +1,4 @@ +{ + "status": 200, + "result": false +} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UU/validate.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UU/validate.json new file mode 100644 index 0000000..d256ef7 --- /dev/null +++ b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UU/validate.json @@ -0,0 +1,4 @@ +{ + "status": 200, + "result": true +} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UV/validate.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UV/validate.json new file mode 100644 index 0000000..3279e5a --- /dev/null +++ b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UV/validate.json @@ -0,0 +1,4 @@ +{ + "status": 200, + "result": false +} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UT.json b/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UT.json new file mode 100644 index 0000000..f7cb0bf --- /dev/null +++ b/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UT.json @@ -0,0 +1,10 @@ +{ + "status": 200, + "result": { + "postcode": "HD1 2UT", + "year_terminated": 1986, + "month_terminated": 12, + "longitude": -1.780629, + "latitude": 53.643909 + } +} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UV.R b/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UV.R new file mode 100644 index 0000000..8425e44 --- /dev/null +++ b/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UV.R @@ -0,0 +1,20 @@ +structure(list( + method = "GET", url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", + status_code = 404L, headers = structure(list( + Date = "Thu, 21 Mar 2024 15:07:27 GMT", + `Content-Type` = "application/json; charset=utf-8", `Transfer-Encoding` = "chunked", + Connection = "keep-alive", `x-gnu` = "Michael J Blanchard", + `access-control-allow-origin` = "*", etag = "W/\"36-GttZSTwwwLlS7Lnu5NllR3pXy/E\"", + `CF-Cache-Status` = "HIT", Age = "1896", `Report-To` = "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=qs6JZFWhvz%2BNFgTy3pxPlruFzeMh%2B1CvhW1Wjiv9En6ZFcBYmhOti6WKVGFc4RyjMkU9eDsWi6QG%2BuXceiUsr79V6ab2nEbQzlhl97E%2BwWB2gWGs6bmnutcp8%2FZOwq9F13o%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + NEL = "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + Vary = "Accept-Encoding", Server = "cloudflare", `CF-RAY` = "867eda0a9c9c4140-LHR", + `Content-Encoding` = "gzip" + ), class = "httr2_headers"), + body = charToRaw("{\"status\":404,\"error\":\"Terminated postcode not found\"}"), + request = structure(list( + url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", + method = NULL, headers = list(), body = NULL, fields = list(), + options = list(useragent = "github.com/nhs-r-community/NHSRpopulation // httr2"), + policies = list() + ), class = "httr2_request"), cache = new.env(parent = emptyenv()) +), class = "httr2_response") diff --git a/tests/testthat/test-get_data.R b/tests/testthat/test-get_data.R index 12382e8..b3abe66 100644 --- a/tests/testthat/test-get_data.R +++ b/tests/testthat/test-get_data.R @@ -122,6 +122,7 @@ test_that("Returns data with different column names - imd", { n_col_imd ) }) +# }) httptest2::with_mock_dir("imd", { test_that("Returns url_type = 'imd'", { @@ -164,3 +165,37 @@ httptest2::with_mock_dir("imd", { ) }) }) + +# httptest2::with_mock_dir("imd from postcode data", { +test_that("From postcode data returns url_type = 'imd'", { + n_rows <- 3 + n_col_vector <- 105 + n_col_df <- 107 + + testthat::expect_equal( + colnames(get_data(test_df1, url_type = "imd") |> + dplyr::select(imd_rank)), "imd_rank" + ) + + testthat::expect_equal( + nrow(get_data(test_df1, url_type = "imd")), n_rows + ) + + testthat::expect_equal( + ncol(get_data(test_df1, url_type = "imd")), n_col_df + ) + + testthat::expect_equal( + colnames(get_data(postcodes, url_type = "imd") |> + dplyr::select(imd_rank)), "imd_rank" + ) + + testthat::expect_equal( + nrow(get_data(postcodes, url_type = "imd")), n_rows + ) + + testthat::expect_equal( + ncol(get_data(postcodes, url_type = "imd")), n_col_vector + ) +}) +# }) From 552487af2f2206d42778fb10b0ac72a13fc8cf0f Mon Sep 17 00:00:00 2001 From: Lextuga007 Date: Thu, 21 Mar 2024 15:19:50 +0000 Subject: [PATCH 3/3] Removed httr2 tests --- .gitignore | 1 + .../postcodes/E01002/autocomplete-b93a9c.json | 4 - .../postcodes/E01002/validate.json | 4 - .../E01011107/autocomplete-b93a9c.json | 4 - .../postcodes/E01011107/validate.json | 4 - .../E01011229/autocomplete-b93a9c.json | 4 - .../postcodes/E01011229/validate.json | 4 - .../terminated_postcodes/E01002.R | 19 - .../terminated_postcodes/E01011107.R | 19 - .../terminated_postcodes/E01011229.R | 19 - .../postcodes-b93a9c-dca3bd-POST.json | 59 -- .../postcodes-c36e7a-POST.json | 52 -- .../postcodes-e836c0-POST.json | 52 -- .../HD1%202U/autocomplete-b93a9c.json | 6 - .../postcodes/HD1%202UT/validate.json | 4 - .../postcodes/HD1%202UU/validate.json | 4 - .../postcodes/HD1%202UV/validate.json | 4 - .../terminated_postcodes/HD1%202UT.json | 10 - .../terminated_postcodes/HD1%202UV.R | 20 - .../postcodes-b93a9c-dca3bd-POST.json | 59 -- .../postcodes-c36e7a-POST.json | 52 -- .../postcodes-e836c0-POST.json | 52 -- .../HD1%202U/autocomplete-b93a9c.json | 6 - .../postcodes/HD1%202UT/validate.json | 4 - .../postcodes/HD1%202UU/validate.json | 4 - .../postcodes/HD1%202UV/validate.json | 4 - .../terminated_postcodes/HD1%202UT.json | 10 - .../terminated_postcodes/HD1%202UV.R | 20 - .../postcodes-b93a9c-dca3bd-POST.json | 59 -- .../postcodes-c36e7a-POST.json | 52 -- .../postcodes-e836c0-POST.json | 52 -- .../HD1%202U/autocomplete-b93a9c.json | 6 - .../postcodes/HD1%202UT/validate.json | 4 - .../postcodes/HD1%202UU/validate.json | 4 - .../postcodes/HD1%202UV/validate.json | 4 - .../terminated_postcodes/HD1%202UT.json | 10 - .../terminated_postcodes/HD1%202UV.R | 20 - .../FeatureServer/0/query-6b86d4.json | 696 ---------------- .../FeatureServer/0/query-9ffea3.json | 7 - .../FeatureServer/0/query-b46ab8.json | 766 ------------------ .../FeatureServer/0/query-db1e5c.json | 8 - .../FeatureServer/0/query-9acbf6.json | 6 - .../postcodes-b93a9c-dca3bd-POST.json | 59 -- .../postcodes-c36e7a-POST.json | 52 -- .../postcodes-e836c0-POST.json | 52 -- .../HD1%202U/autocomplete-b93a9c.json | 6 - .../postcodes/HD1%202UT/validate.json | 4 - .../postcodes/HD1%202UU/validate.json | 4 - .../postcodes/HD1%202UV/validate.json | 4 - .../terminated_postcodes/HD1%202UT.json | 10 - .../terminated_postcodes/HD1%202UV.R | 20 - .../FeatureServer/0/query-7dbeef.json | 8 - .../FeatureServer/0/query-f8b3dd.json | 541 ------------- .../postcodes-b93a9c-dca3bd-POST.json | 59 -- .../postcodes-c36e7a-POST.json | 52 -- .../postcodes-e836c0-POST.json | 52 -- .../HD1%202U/autocomplete-b93a9c.json | 6 - .../postcodes/HD1%202UT/validate.json | 4 - .../postcodes/HD1%202UU/validate.json | 4 - .../postcodes/HD1%202UV/validate.json | 4 - .../terminated_postcodes/HD1%202UT.json | 10 - .../terminated_postcodes/HD1%202UV.R | 20 - tests/testthat/setup.R | 1 - 63 files changed, 1 insertion(+), 3169 deletions(-) delete mode 100644 tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01002/autocomplete-b93a9c.json delete mode 100644 tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01002/validate.json delete mode 100644 tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011107/autocomplete-b93a9c.json delete mode 100644 tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011107/validate.json delete mode 100644 tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011229/autocomplete-b93a9c.json delete mode 100644 tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011229/validate.json delete mode 100644 tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01002.R delete mode 100644 tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01011107.R delete mode 100644 tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01011229.R delete mode 100644 tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json delete mode 100644 tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-c36e7a-POST.json delete mode 100644 tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-e836c0-POST.json delete mode 100644 tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json delete mode 100644 tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UT/validate.json delete mode 100644 tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UU/validate.json delete mode 100644 tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UV/validate.json delete mode 100644 tests/testthat/different columns - postcodes/api.postcodes.io/terminated_postcodes/HD1%202UT.json delete mode 100644 tests/testthat/different columns - postcodes/api.postcodes.io/terminated_postcodes/HD1%202UV.R delete mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json delete mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes-c36e7a-POST.json delete mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes-e836c0-POST.json delete mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json delete mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UT/validate.json delete mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UU/validate.json delete mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UV/validate.json delete mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UT.json delete mode 100644 tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UV.R delete mode 100644 tests/testthat/imd/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json delete mode 100644 tests/testthat/imd/api.postcodes.io/postcodes-c36e7a-POST.json delete mode 100644 tests/testthat/imd/api.postcodes.io/postcodes-e836c0-POST.json delete mode 100644 tests/testthat/imd/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json delete mode 100644 tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UT/validate.json delete mode 100644 tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UU/validate.json delete mode 100644 tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UV/validate.json delete mode 100644 tests/testthat/imd/api.postcodes.io/terminated_postcodes/HD1%202UT.json delete mode 100644 tests/testthat/imd/api.postcodes.io/terminated_postcodes/HD1%202UV.R delete mode 100644 tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-6b86d4.json delete mode 100644 tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-9ffea3.json delete mode 100644 tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-b46ab8.json delete mode 100644 tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-db1e5c.json delete mode 100644 tests/testthat/imd_message/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-9acbf6.json delete mode 100644 tests/testthat/postcode_message/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json delete mode 100644 tests/testthat/postcode_message/api.postcodes.io/postcodes-c36e7a-POST.json delete mode 100644 tests/testthat/postcode_message/api.postcodes.io/postcodes-e836c0-POST.json delete mode 100644 tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json delete mode 100644 tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UT/validate.json delete mode 100644 tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UU/validate.json delete mode 100644 tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UV/validate.json delete mode 100644 tests/testthat/postcode_message/api.postcodes.io/terminated_postcodes/HD1%202UT.json delete mode 100644 tests/testthat/postcode_message/api.postcodes.io/terminated_postcodes/HD1%202UV.R delete mode 100644 tests/testthat/postcode_message/services1.arcgis.com/ESMARspQHYMw9BZ9/ArcGIS/rest/services/Online_ONS_Postcode_Directory_Live/FeatureServer/0/query-7dbeef.json delete mode 100644 tests/testthat/postcode_message/services1.arcgis.com/ESMARspQHYMw9BZ9/ArcGIS/rest/services/Online_ONS_Postcode_Directory_Live/FeatureServer/0/query-f8b3dd.json delete mode 100644 tests/testthat/postcodes/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json delete mode 100644 tests/testthat/postcodes/api.postcodes.io/postcodes-c36e7a-POST.json delete mode 100644 tests/testthat/postcodes/api.postcodes.io/postcodes-e836c0-POST.json delete mode 100644 tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json delete mode 100644 tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UT/validate.json delete mode 100644 tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UU/validate.json delete mode 100644 tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UV/validate.json delete mode 100644 tests/testthat/postcodes/api.postcodes.io/terminated_postcodes/HD1%202UT.json delete mode 100644 tests/testthat/postcodes/api.postcodes.io/terminated_postcodes/HD1%202UV.R delete mode 100644 tests/testthat/setup.R diff --git a/.gitignore b/.gitignore index d06cb72..202580d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ inst/doc docs archive/ +httr2-test/ \ No newline at end of file diff --git a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01002/autocomplete-b93a9c.json b/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01002/autocomplete-b93a9c.json deleted file mode 100644 index 9d348c2..0000000 --- a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01002/autocomplete-b93a9c.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": null -} diff --git a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01002/validate.json b/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01002/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01002/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011107/autocomplete-b93a9c.json b/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011107/autocomplete-b93a9c.json deleted file mode 100644 index 9d348c2..0000000 --- a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011107/autocomplete-b93a9c.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": null -} diff --git a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011107/validate.json b/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011107/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011107/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011229/autocomplete-b93a9c.json b/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011229/autocomplete-b93a9c.json deleted file mode 100644 index 9d348c2..0000000 --- a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011229/autocomplete-b93a9c.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": null -} diff --git a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011229/validate.json b/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011229/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/different columns - imd/api.postcodes.io/postcodes/E01011229/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01002.R b/tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01002.R deleted file mode 100644 index d3edd4e..0000000 --- a/tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01002.R +++ /dev/null @@ -1,19 +0,0 @@ -structure(list( - method = "GET", url = "https://api.postcodes.io/terminated_postcodes/E01002", - status_code = 404L, headers = structure(list( - Date = "Tue, 19 Mar 2024 15:17:39 GMT", - `Content-Type` = "application/json; charset=utf-8", `Content-Length` = "41", - Connection = "keep-alive", `x-gnu` = "Michael J Blanchard", - `access-control-allow-origin` = "*", etag = "W/\"29-T14TWaKfjMuMFPoRgcsDj2g1ORs\"", - `CF-Cache-Status` = "HIT", Age = "12146", `Report-To` = "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=JvElpZVTLBaNzg9lQAYggkNR6tZi1S6YHWz2tBb712wWkJ7wl9OSr0fna2w18hdPUypn7rd50jKColyj3QSo7qEmV96lOKt1yqhStZ%2BXZFANZWd5mGWND8j0fM6ZjI9TMRc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", - NEL = "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", - Vary = "Accept-Encoding", Server = "cloudflare", `CF-RAY` = "866e6e3c8c0cdc29-LHR" - ), class = "httr2_headers"), - body = charToRaw("{\"status\":404,\"error\":\"Invalid postcode\"}"), - request = structure(list( - url = "https://api.postcodes.io/terminated_postcodes/E01002", - method = NULL, headers = list(), body = NULL, fields = list(), - options = list(useragent = "github.com/nhs-r-community/NHSRpopulation // httr2"), - policies = list() - ), class = "httr2_request"), cache = new.env(parent = emptyenv()) -), class = "httr2_response") diff --git a/tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01011107.R b/tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01011107.R deleted file mode 100644 index bb599a8..0000000 --- a/tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01011107.R +++ /dev/null @@ -1,19 +0,0 @@ -structure(list( - method = "GET", url = "https://api.postcodes.io/terminated_postcodes/E01011107", - status_code = 404L, headers = structure(list( - Date = "Tue, 19 Mar 2024 15:17:36 GMT", - `Content-Type` = "application/json; charset=utf-8", `Content-Length` = "41", - Connection = "keep-alive", `x-gnu` = "Michael J Blanchard", - `access-control-allow-origin` = "*", etag = "W/\"29-T14TWaKfjMuMFPoRgcsDj2g1ORs\"", - `CF-Cache-Status` = "HIT", Age = "12143", `Report-To` = "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=%2FI%2BTV5AD2bhZqlw8AXaPSbHNCMZR89iUg03uUSFFZEhRALDJFqXfgtf1ehiOjJspCon2zT3WEkuKPPCyNa2YE6faRM7PvDDwwW3sJHKommEY0izDhNRoA6nV2zy46ucyY78%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", - NEL = "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", - Vary = "Accept-Encoding", Server = "cloudflare", `CF-RAY` = "866e6e29bdb4dc29-LHR" - ), class = "httr2_headers"), - body = charToRaw("{\"status\":404,\"error\":\"Invalid postcode\"}"), - request = structure(list( - url = "https://api.postcodes.io/terminated_postcodes/E01011107", - method = NULL, headers = list(), body = NULL, fields = list(), - options = list(useragent = "github.com/nhs-r-community/NHSRpopulation // httr2"), - policies = list() - ), class = "httr2_request"), cache = new.env(parent = emptyenv()) -), class = "httr2_response") diff --git a/tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01011229.R b/tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01011229.R deleted file mode 100644 index 6f2c699..0000000 --- a/tests/testthat/different columns - imd/api.postcodes.io/terminated_postcodes/E01011229.R +++ /dev/null @@ -1,19 +0,0 @@ -structure(list( - method = "GET", url = "https://api.postcodes.io/terminated_postcodes/E01011229", - status_code = 404L, headers = structure(list( - Date = "Tue, 19 Mar 2024 15:17:39 GMT", - `Content-Type` = "application/json; charset=utf-8", `Content-Length` = "41", - Connection = "keep-alive", `x-gnu` = "Michael J Blanchard", - `access-control-allow-origin` = "*", etag = "W/\"29-T14TWaKfjMuMFPoRgcsDj2g1ORs\"", - `CF-Cache-Status` = "HIT", Age = "83251", `Report-To` = "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=g3xKnaTJ0HWeBG2fNvhV3Xo%2FtWFWNOuKFzJesVnpbDKwbEMeRj9FSoNT%2Bhme7MJ%2BhcTSVwho9Bm1yY%2FP5Y4UG60ZzpRGMooyaWIXnSLe1aJeUm08C53c35kAM1yuXUP%2F7aM%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", - NEL = "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", - Vary = "Accept-Encoding", Server = "cloudflare", `CF-RAY` = "866e6e3bfb66dc29-LHR" - ), class = "httr2_headers"), - body = charToRaw("{\"status\":404,\"error\":\"Invalid postcode\"}"), - request = structure(list( - url = "https://api.postcodes.io/terminated_postcodes/E01011229", - method = NULL, headers = list(), body = NULL, fields = list(), - options = list(useragent = "github.com/nhs-r-community/NHSRpopulation // httr2"), - policies = list() - ), class = "httr2_request"), cache = new.env(parent = emptyenv()) -), class = "httr2_response") diff --git a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json b/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json deleted file mode 100644 index 5993812..0000000 --- a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": { - "limit": "1", - "longitude": -1.780629, - "latitude": 53.643909 - }, - "result": [ - { - "postcode": "HD1 2RD", - "quality": 1, - "eastings": 414639, - "northings": 416430, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.780038, - "latitude": 53.644178, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 029D", - "msoa": "Kirklees 029", - "incode": "2RD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011107", - "msoa": "E02002299", - "lau2": "E08000034", - "pfa": "E23000010" - }, - "distance": 49.23421539 - } - ] - } - ] -} diff --git a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-c36e7a-POST.json b/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-c36e7a-POST.json deleted file mode 100644 index 608c657..0000000 --- a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-c36e7a-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UU", - "result": { - "postcode": "HD1 2UU", - "quality": 1, - "eastings": 414433, - "northings": 416422, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.783154, - "latitude": 53.644112, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UU", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198604", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-e836c0-POST.json b/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-e836c0-POST.json deleted file mode 100644 index 5bfffb7..0000000 --- a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes-e836c0-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UD", - "result": { - "postcode": "HD1 2UD", - "quality": 1, - "eastings": 414371, - "northings": 416317, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.784097, - "latitude": 53.64317, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json b/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json deleted file mode 100644 index f87fee6..0000000 --- a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "status": 200, - "result": [ - "HD1 2UD" - ] -} diff --git a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UT/validate.json b/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UT/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UT/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UU/validate.json b/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UU/validate.json deleted file mode 100644 index d256ef7..0000000 --- a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UU/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": true -} diff --git a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UV/validate.json b/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UV/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/different columns - postcodes/api.postcodes.io/postcodes/HD1%202UV/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/different columns - postcodes/api.postcodes.io/terminated_postcodes/HD1%202UT.json b/tests/testthat/different columns - postcodes/api.postcodes.io/terminated_postcodes/HD1%202UT.json deleted file mode 100644 index f7cb0bf..0000000 --- a/tests/testthat/different columns - postcodes/api.postcodes.io/terminated_postcodes/HD1%202UT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status": 200, - "result": { - "postcode": "HD1 2UT", - "year_terminated": 1986, - "month_terminated": 12, - "longitude": -1.780629, - "latitude": 53.643909 - } -} diff --git a/tests/testthat/different columns - postcodes/api.postcodes.io/terminated_postcodes/HD1%202UV.R b/tests/testthat/different columns - postcodes/api.postcodes.io/terminated_postcodes/HD1%202UV.R deleted file mode 100644 index 01f6ccb..0000000 --- a/tests/testthat/different columns - postcodes/api.postcodes.io/terminated_postcodes/HD1%202UV.R +++ /dev/null @@ -1,20 +0,0 @@ -structure(list( - method = "GET", url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - status_code = 404L, headers = structure(list( - Date = "Sat, 16 Mar 2024 08:02:58 GMT", - `Content-Type` = "application/json; charset=utf-8", `Transfer-Encoding` = "chunked", - Connection = "keep-alive", `x-gnu` = "Michael J Blanchard", - `access-control-allow-origin` = "*", etag = "W/\"36-GttZSTwwwLlS7Lnu5NllR3pXy/E\"", - `CF-Cache-Status` = "HIT", Age = "398818", `Report-To` = "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=eHOv0N2rtjD5YkO7OPwfuCBO9UPKcbPjTtkx5Nk41LA6xx7cAEItBoocVwxHH17%2BUszmjOyb5iso5CO2UYTQ9Z437DqcTjnXmD9sE07lZKdVW6RA0DvlkGrkewf8ELTxVEI%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", - NEL = "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", - Vary = "Accept-Encoding", Server = "cloudflare", `CF-RAY` = "86533958fd67dd3b-LHR", - `Content-Encoding` = "gzip" - ), class = "httr2_headers"), - body = charToRaw("{\"status\":404,\"error\":\"Terminated postcode not found\"}"), - request = structure(list( - url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - method = NULL, headers = list(), body = NULL, fields = list(), - options = list(useragent = "github.com/nhs-r-community/NHSRpopulation // httr2"), - policies = list() - ), class = "httr2_request"), cache = new.env(parent = emptyenv()) -), class = "httr2_response") diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json deleted file mode 100644 index 5993812..0000000 --- a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": { - "limit": "1", - "longitude": -1.780629, - "latitude": 53.643909 - }, - "result": [ - { - "postcode": "HD1 2RD", - "quality": 1, - "eastings": 414639, - "northings": 416430, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.780038, - "latitude": 53.644178, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 029D", - "msoa": "Kirklees 029", - "incode": "2RD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011107", - "msoa": "E02002299", - "lau2": "E08000034", - "pfa": "E23000010" - }, - "distance": 49.23421539 - } - ] - } - ] -} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-c36e7a-POST.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-c36e7a-POST.json deleted file mode 100644 index 608c657..0000000 --- a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-c36e7a-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UU", - "result": { - "postcode": "HD1 2UU", - "quality": 1, - "eastings": 414433, - "northings": 416422, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.783154, - "latitude": 53.644112, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UU", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198604", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-e836c0-POST.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-e836c0-POST.json deleted file mode 100644 index 5bfffb7..0000000 --- a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes-e836c0-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UD", - "result": { - "postcode": "HD1 2UD", - "quality": 1, - "eastings": 414371, - "northings": 416317, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.784097, - "latitude": 53.64317, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json deleted file mode 100644 index f87fee6..0000000 --- a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "status": 200, - "result": [ - "HD1 2UD" - ] -} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UT/validate.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UT/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UT/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UU/validate.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UU/validate.json deleted file mode 100644 index d256ef7..0000000 --- a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UU/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": true -} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UV/validate.json b/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UV/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/imd from postcode data/api.postcodes.io/postcodes/HD1%202UV/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UT.json b/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UT.json deleted file mode 100644 index f7cb0bf..0000000 --- a/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status": 200, - "result": { - "postcode": "HD1 2UT", - "year_terminated": 1986, - "month_terminated": 12, - "longitude": -1.780629, - "latitude": 53.643909 - } -} diff --git a/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UV.R b/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UV.R deleted file mode 100644 index 8425e44..0000000 --- a/tests/testthat/imd from postcode data/api.postcodes.io/terminated_postcodes/HD1%202UV.R +++ /dev/null @@ -1,20 +0,0 @@ -structure(list( - method = "GET", url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - status_code = 404L, headers = structure(list( - Date = "Thu, 21 Mar 2024 15:07:27 GMT", - `Content-Type` = "application/json; charset=utf-8", `Transfer-Encoding` = "chunked", - Connection = "keep-alive", `x-gnu` = "Michael J Blanchard", - `access-control-allow-origin` = "*", etag = "W/\"36-GttZSTwwwLlS7Lnu5NllR3pXy/E\"", - `CF-Cache-Status` = "HIT", Age = "1896", `Report-To` = "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=qs6JZFWhvz%2BNFgTy3pxPlruFzeMh%2B1CvhW1Wjiv9En6ZFcBYmhOti6WKVGFc4RyjMkU9eDsWi6QG%2BuXceiUsr79V6ab2nEbQzlhl97E%2BwWB2gWGs6bmnutcp8%2FZOwq9F13o%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", - NEL = "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", - Vary = "Accept-Encoding", Server = "cloudflare", `CF-RAY` = "867eda0a9c9c4140-LHR", - `Content-Encoding` = "gzip" - ), class = "httr2_headers"), - body = charToRaw("{\"status\":404,\"error\":\"Terminated postcode not found\"}"), - request = structure(list( - url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - method = NULL, headers = list(), body = NULL, fields = list(), - options = list(useragent = "github.com/nhs-r-community/NHSRpopulation // httr2"), - policies = list() - ), class = "httr2_request"), cache = new.env(parent = emptyenv()) -), class = "httr2_response") diff --git a/tests/testthat/imd/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json b/tests/testthat/imd/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json deleted file mode 100644 index 5993812..0000000 --- a/tests/testthat/imd/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": { - "limit": "1", - "longitude": -1.780629, - "latitude": 53.643909 - }, - "result": [ - { - "postcode": "HD1 2RD", - "quality": 1, - "eastings": 414639, - "northings": 416430, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.780038, - "latitude": 53.644178, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 029D", - "msoa": "Kirklees 029", - "incode": "2RD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011107", - "msoa": "E02002299", - "lau2": "E08000034", - "pfa": "E23000010" - }, - "distance": 49.23421539 - } - ] - } - ] -} diff --git a/tests/testthat/imd/api.postcodes.io/postcodes-c36e7a-POST.json b/tests/testthat/imd/api.postcodes.io/postcodes-c36e7a-POST.json deleted file mode 100644 index 608c657..0000000 --- a/tests/testthat/imd/api.postcodes.io/postcodes-c36e7a-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UU", - "result": { - "postcode": "HD1 2UU", - "quality": 1, - "eastings": 414433, - "northings": 416422, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.783154, - "latitude": 53.644112, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UU", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198604", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/imd/api.postcodes.io/postcodes-e836c0-POST.json b/tests/testthat/imd/api.postcodes.io/postcodes-e836c0-POST.json deleted file mode 100644 index 5bfffb7..0000000 --- a/tests/testthat/imd/api.postcodes.io/postcodes-e836c0-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UD", - "result": { - "postcode": "HD1 2UD", - "quality": 1, - "eastings": 414371, - "northings": 416317, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.784097, - "latitude": 53.64317, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json b/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json deleted file mode 100644 index f87fee6..0000000 --- a/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "status": 200, - "result": [ - "HD1 2UD" - ] -} diff --git a/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UT/validate.json b/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UT/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UT/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UU/validate.json b/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UU/validate.json deleted file mode 100644 index d256ef7..0000000 --- a/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UU/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": true -} diff --git a/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UV/validate.json b/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UV/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/imd/api.postcodes.io/postcodes/HD1%202UV/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/imd/api.postcodes.io/terminated_postcodes/HD1%202UT.json b/tests/testthat/imd/api.postcodes.io/terminated_postcodes/HD1%202UT.json deleted file mode 100644 index f7cb0bf..0000000 --- a/tests/testthat/imd/api.postcodes.io/terminated_postcodes/HD1%202UT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status": 200, - "result": { - "postcode": "HD1 2UT", - "year_terminated": 1986, - "month_terminated": 12, - "longitude": -1.780629, - "latitude": 53.643909 - } -} diff --git a/tests/testthat/imd/api.postcodes.io/terminated_postcodes/HD1%202UV.R b/tests/testthat/imd/api.postcodes.io/terminated_postcodes/HD1%202UV.R deleted file mode 100644 index f745452..0000000 --- a/tests/testthat/imd/api.postcodes.io/terminated_postcodes/HD1%202UV.R +++ /dev/null @@ -1,20 +0,0 @@ -structure(list( - method = "GET", url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - status_code = 404L, headers = structure(list( - Date = "Fri, 15 Mar 2024 17:52:28 GMT", - `Content-Type` = "application/json; charset=utf-8", `Transfer-Encoding` = "chunked", - Connection = "keep-alive", `x-gnu` = "Michael J Blanchard", - `access-control-allow-origin` = "*", etag = "W/\"36-GttZSTwwwLlS7Lnu5NllR3pXy/E\"", - `CF-Cache-Status` = "HIT", Age = "334146", `Report-To` = "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=yahZfedaGm5qguUPuBWPWLvKbvRGQwYHf8svBm%2BxODYXv51ixkv8FcEMWp5gxE%2Bt4ukGbYtGDX8XLn4JMi6Lanre%2F9wHqdZrp9dsjNrx70teShT2AE5GpbWppLjBMCDEGzo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", - NEL = "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", - Vary = "Accept-Encoding", Server = "cloudflare", `CF-RAY` = "864e5b80fd966391-LHR", - `Content-Encoding` = "gzip" - ), class = "httr2_headers"), - body = charToRaw("{\"status\":404,\"error\":\"Terminated postcode not found\"}"), - request = structure(list( - url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - method = NULL, headers = list(), body = NULL, fields = list(), - options = list(useragent = "github.com/nhs-r-community/NHSRpopulation // httr2"), - policies = list() - ), class = "httr2_request"), cache = new.env(parent = emptyenv()) -), class = "httr2_response") diff --git a/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-6b86d4.json b/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-6b86d4.json deleted file mode 100644 index e13c0a2..0000000 --- a/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-6b86d4.json +++ /dev/null @@ -1,696 +0,0 @@ -{ - "objectIdFieldName": "FID", - "uniqueIdField": { - "name": "FID", - "isSystemMaintained": true - }, - "globalIdFieldName": "", - "geometryProperties": { - "shapeAreaFieldName": "Shape__Area", - "shapeLengthFieldName": "Shape__Length", - "units": "esriMeters" - }, - "geometryType": "esriGeometryPolygon", - "spatialReference": { - "wkid": 102100, - "latestWkid": 3857 - }, - "fields": [ - { - "name": "FID", - "type": "esriFieldTypeOID", - "alias": "FID", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "lsoa11cd", - "type": "esriFieldTypeString", - "alias": "lsoa11cd", - "sqlType": "sqlTypeNVarchar", - "length": 80, - "domain": null, - "defaultValue": null - }, - { - "name": "lsoa11nm", - "type": "esriFieldTypeString", - "alias": "lsoa11nm", - "sqlType": "sqlTypeNVarchar", - "length": 80, - "domain": null, - "defaultValue": null - }, - { - "name": "lsoa11nmw", - "type": "esriFieldTypeString", - "alias": "lsoa11nmw", - "sqlType": "sqlTypeNVarchar", - "length": 80, - "domain": null, - "defaultValue": null - }, - { - "name": "st_areasha", - "type": "esriFieldTypeDouble", - "alias": "st_areasha", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "st_lengths", - "type": "esriFieldTypeDouble", - "alias": "st_lengths", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IMD_Rank", - "type": "esriFieldTypeInteger", - "alias": "IMD_Rank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IMD_Decile", - "type": "esriFieldTypeInteger", - "alias": "IMD_Decile", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "LSOA01NM", - "type": "esriFieldTypeString", - "alias": "LSOA01NM", - "sqlType": "sqlTypeNVarchar", - "length": 254, - "domain": null, - "defaultValue": null - }, - { - "name": "LADcd", - "type": "esriFieldTypeString", - "alias": "LADcd", - "sqlType": "sqlTypeNVarchar", - "length": 254, - "domain": null, - "defaultValue": null - }, - { - "name": "LADnm", - "type": "esriFieldTypeString", - "alias": "LADnm", - "sqlType": "sqlTypeNVarchar", - "length": 254, - "domain": null, - "defaultValue": null - }, - { - "name": "IMDScore", - "type": "esriFieldTypeDouble", - "alias": "IMDScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IMDRank0", - "type": "esriFieldTypeInteger", - "alias": "IMDRank0", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IMDDec0", - "type": "esriFieldTypeInteger", - "alias": "IMDDec0", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IncScore", - "type": "esriFieldTypeDouble", - "alias": "IncScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IncRank", - "type": "esriFieldTypeInteger", - "alias": "IncRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IncDec", - "type": "esriFieldTypeInteger", - "alias": "IncDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EmpScore", - "type": "esriFieldTypeDouble", - "alias": "EmpScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "EmpRank", - "type": "esriFieldTypeInteger", - "alias": "EmpRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EmpDec", - "type": "esriFieldTypeInteger", - "alias": "EmpDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EduScore", - "type": "esriFieldTypeDouble", - "alias": "EduScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "EduRank", - "type": "esriFieldTypeInteger", - "alias": "EduRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EduDec", - "type": "esriFieldTypeInteger", - "alias": "EduDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "HDDScore", - "type": "esriFieldTypeDouble", - "alias": "HDDScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "HDDRank", - "type": "esriFieldTypeInteger", - "alias": "HDDRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "HDDDec", - "type": "esriFieldTypeInteger", - "alias": "HDDDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "CriScore", - "type": "esriFieldTypeDouble", - "alias": "CriScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "CriRank", - "type": "esriFieldTypeInteger", - "alias": "CriRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "CriDec", - "type": "esriFieldTypeInteger", - "alias": "CriDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "BHSScore", - "type": "esriFieldTypeDouble", - "alias": "BHSScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "BHSRank", - "type": "esriFieldTypeInteger", - "alias": "BHSRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "BHSDec", - "type": "esriFieldTypeInteger", - "alias": "BHSDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EnvScore", - "type": "esriFieldTypeDouble", - "alias": "EnvScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "EnvRank", - "type": "esriFieldTypeInteger", - "alias": "EnvRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EnvDec", - "type": "esriFieldTypeInteger", - "alias": "EnvDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IDCScore", - "type": "esriFieldTypeDouble", - "alias": "IDCScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IDCRank", - "type": "esriFieldTypeInteger", - "alias": "IDCRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IDCDec", - "type": "esriFieldTypeInteger", - "alias": "IDCDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IDOScore", - "type": "esriFieldTypeDouble", - "alias": "IDOScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IDORank", - "type": "esriFieldTypeInteger", - "alias": "IDORank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IDODec", - "type": "esriFieldTypeInteger", - "alias": "IDODec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "CYPScore", - "type": "esriFieldTypeDouble", - "alias": "CYPScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "CYPRank", - "type": "esriFieldTypeInteger", - "alias": "CYPRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "CYPDec", - "type": "esriFieldTypeInteger", - "alias": "CYPDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "ASScore", - "type": "esriFieldTypeDouble", - "alias": "ASScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "ASRank", - "type": "esriFieldTypeInteger", - "alias": "ASRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "ASDec", - "type": "esriFieldTypeInteger", - "alias": "ASDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "GBScore", - "type": "esriFieldTypeDouble", - "alias": "GBScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "GBRank", - "type": "esriFieldTypeInteger", - "alias": "GBRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "GBDec", - "type": "esriFieldTypeInteger", - "alias": "GBDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "WBScore", - "type": "esriFieldTypeDouble", - "alias": "WBScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "WBRank", - "type": "esriFieldTypeInteger", - "alias": "WBRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "WBDec", - "type": "esriFieldTypeInteger", - "alias": "WBDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IndScore", - "type": "esriFieldTypeDouble", - "alias": "IndScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IndRank", - "type": "esriFieldTypeInteger", - "alias": "IndRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IndDec", - "type": "esriFieldTypeInteger", - "alias": "IndDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "OutScore", - "type": "esriFieldTypeDouble", - "alias": "OutScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "OutRank", - "type": "esriFieldTypeInteger", - "alias": "OutRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "OutDec", - "type": "esriFieldTypeInteger", - "alias": "OutDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "TotPop", - "type": "esriFieldTypeInteger", - "alias": "TotPop", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "DepChi", - "type": "esriFieldTypeInteger", - "alias": "DepChi", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "Pop16_59", - "type": "esriFieldTypeInteger", - "alias": "Pop16_59", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "Pop60_", - "type": "esriFieldTypeInteger", - "alias": "Pop60+", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "WorkPop", - "type": "esriFieldTypeDouble", - "alias": "WorkPop", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "Shape__Area", - "type": "esriFieldTypeDouble", - "alias": "Shape__Area", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "Shape__Length", - "type": "esriFieldTypeDouble", - "alias": "Shape__Length", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - } - ], - "features": [ - { - "attributes": { - "FID": 11200, - "lsoa11cd": "E01011107", - "lsoa11nm": "Kirklees 029D", - "lsoa11nmw": "Kirklees 029D", - "st_areasha": 1921709.0189415, - "st_lengths": 7525.08646263709, - "IMD_Rank": 2928, - "IMD_Decile": 1, - "LSOA01NM": "Kirklees 029D", - "LADcd": "E08000034", - "LADnm": "Kirklees", - "IMDScore": 45.619, - "IMDRank0": 2928, - "IMDDec0": 1, - "IncScore": 0.256, - "IncRank": 3753, - "IncDec": 2, - "EmpScore": 0.176, - "EmpRank": 4566, - "EmpDec": 2, - "EduScore": 41.123, - "EduRank": 5096, - "EduDec": 2, - "HDDScore": 0.746, - "HDDRank": 6409, - "HDDDec": 2, - "CriScore": 1.156, - "CriRank": 2488, - "CriDec": 1, - "BHSScore": 35.915, - "BHSRank": 3677, - "BHSDec": 2, - "EnvScore": 44.867, - "EnvRank": 2932, - "EnvDec": 1, - "IDCScore": 0.304, - "IDCRank": 4202, - "IDCDec": 2, - "IDOScore": 0.417, - "IDORank": 1575, - "IDODec": 1, - "CYPScore": 0.214, - "CYPRank": 12672, - "CYPDec": 4, - "ASScore": 0.505, - "ASRank": 1936, - "ASDec": 1, - "GBScore": 0.17, - "GBRank": 12735, - "GBDec": 4, - "WBScore": 3.561, - "WBRank": 3273, - "WBDec": 1, - "IndScore": 0.962, - "IndRank": 4158, - "IndDec": 2, - "OutScore": 0.939, - "OutRank": 4601, - "OutDec": 2, - "TotPop": 2062, - "DepChi": 399, - "Pop16_59": 1532, - "Pop60_": 131, - "WorkPop": 1529.75, - "Shape__Area": 5463700.64208984, - "Shape__Length": 12690.4719307202 - } - }, - { - "attributes": { - "FID": 11707, - "lsoa11cd": "E01011229", - "lsoa11nm": "Kirklees 042D", - "lsoa11nmw": "Kirklees 042D", - "st_areasha": 833129.6049955, - "st_lengths": 7023.19222823396, - "IMD_Rank": 9558, - "IMD_Decile": 3, - "LSOA01NM": "Kirklees 042D", - "LADcd": "E08000034", - "LADnm": "Kirklees", - "IMDScore": 27.05, - "IMDRank0": 9558, - "IMDDec0": 3, - "IncScore": 0.092, - "IncRank": 17587, - "IncDec": 6, - "EmpScore": 0.068, - "EmpRank": 19370, - "EmpDec": 6, - "EduScore": 25.872, - "EduRank": 10382, - "EduDec": 4, - "HDDScore": 1.036, - "HDDRank": 3957, - "HDDDec": 2, - "CriScore": 0.368, - "CriRank": 10920, - "CriDec": 4, - "BHSScore": 27.764, - "BHSRank": 8639, - "BHSDec": 3, - "EnvScore": 54.078, - "EnvRank": 1300, - "EnvDec": 1, - "IDCScore": 0.181, - "IDCRank": 11445, - "IDCDec": 4, - "IDOScore": 0.399, - "IDORank": 1878, - "IDODec": 1, - "CYPScore": 0.355, - "CYPRank": 10686, - "CYPDec": 4, - "ASScore": 0.358, - "ASRank": 10072, - "ASDec": 4, - "GBScore": -0.003, - "GBRank": 15718, - "GBDec": 5, - "WBScore": 2.435, - "WBRank": 5703, - "WBDec": 2, - "IndScore": 1.44, - "IndRank": 1309, - "IndDec": 1, - "OutScore": 0.35, - "OutRank": 10106, - "OutDec": 4, - "TotPop": 4030, - "DepChi": 217, - "Pop16_59": 3576, - "Pop60_": 237, - "WorkPop": 3597.75, - "Shape__Area": 2367401.27246094, - "Shape__Length": 11837.8506456805 - } - } - ] -} diff --git a/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-9ffea3.json b/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-9ffea3.json deleted file mode 100644 index 7033795..0000000 --- a/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-9ffea3.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "objectIdFieldName": "FID", - "objectIds": [ - 11707, - 11200 - ] -} diff --git a/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-b46ab8.json b/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-b46ab8.json deleted file mode 100644 index f47cd01..0000000 --- a/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-b46ab8.json +++ /dev/null @@ -1,766 +0,0 @@ -{ - "objectIdFieldName": "FID", - "uniqueIdField": { - "name": "FID", - "isSystemMaintained": true - }, - "globalIdFieldName": "", - "geometryProperties": { - "shapeAreaFieldName": "Shape__Area", - "shapeLengthFieldName": "Shape__Length", - "units": "esriMeters" - }, - "geometryType": "esriGeometryPolygon", - "spatialReference": { - "wkid": 102100, - "latestWkid": 3857 - }, - "fields": [ - { - "name": "FID", - "type": "esriFieldTypeOID", - "alias": "FID", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "lsoa11cd", - "type": "esriFieldTypeString", - "alias": "lsoa11cd", - "sqlType": "sqlTypeNVarchar", - "length": 80, - "domain": null, - "defaultValue": null - }, - { - "name": "lsoa11nm", - "type": "esriFieldTypeString", - "alias": "lsoa11nm", - "sqlType": "sqlTypeNVarchar", - "length": 80, - "domain": null, - "defaultValue": null - }, - { - "name": "lsoa11nmw", - "type": "esriFieldTypeString", - "alias": "lsoa11nmw", - "sqlType": "sqlTypeNVarchar", - "length": 80, - "domain": null, - "defaultValue": null - }, - { - "name": "st_areasha", - "type": "esriFieldTypeDouble", - "alias": "st_areasha", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "st_lengths", - "type": "esriFieldTypeDouble", - "alias": "st_lengths", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IMD_Rank", - "type": "esriFieldTypeInteger", - "alias": "IMD_Rank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IMD_Decile", - "type": "esriFieldTypeInteger", - "alias": "IMD_Decile", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "LSOA01NM", - "type": "esriFieldTypeString", - "alias": "LSOA01NM", - "sqlType": "sqlTypeNVarchar", - "length": 254, - "domain": null, - "defaultValue": null - }, - { - "name": "LADcd", - "type": "esriFieldTypeString", - "alias": "LADcd", - "sqlType": "sqlTypeNVarchar", - "length": 254, - "domain": null, - "defaultValue": null - }, - { - "name": "LADnm", - "type": "esriFieldTypeString", - "alias": "LADnm", - "sqlType": "sqlTypeNVarchar", - "length": 254, - "domain": null, - "defaultValue": null - }, - { - "name": "IMDScore", - "type": "esriFieldTypeDouble", - "alias": "IMDScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IMDRank0", - "type": "esriFieldTypeInteger", - "alias": "IMDRank0", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IMDDec0", - "type": "esriFieldTypeInteger", - "alias": "IMDDec0", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IncScore", - "type": "esriFieldTypeDouble", - "alias": "IncScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IncRank", - "type": "esriFieldTypeInteger", - "alias": "IncRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IncDec", - "type": "esriFieldTypeInteger", - "alias": "IncDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EmpScore", - "type": "esriFieldTypeDouble", - "alias": "EmpScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "EmpRank", - "type": "esriFieldTypeInteger", - "alias": "EmpRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EmpDec", - "type": "esriFieldTypeInteger", - "alias": "EmpDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EduScore", - "type": "esriFieldTypeDouble", - "alias": "EduScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "EduRank", - "type": "esriFieldTypeInteger", - "alias": "EduRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EduDec", - "type": "esriFieldTypeInteger", - "alias": "EduDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "HDDScore", - "type": "esriFieldTypeDouble", - "alias": "HDDScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "HDDRank", - "type": "esriFieldTypeInteger", - "alias": "HDDRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "HDDDec", - "type": "esriFieldTypeInteger", - "alias": "HDDDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "CriScore", - "type": "esriFieldTypeDouble", - "alias": "CriScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "CriRank", - "type": "esriFieldTypeInteger", - "alias": "CriRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "CriDec", - "type": "esriFieldTypeInteger", - "alias": "CriDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "BHSScore", - "type": "esriFieldTypeDouble", - "alias": "BHSScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "BHSRank", - "type": "esriFieldTypeInteger", - "alias": "BHSRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "BHSDec", - "type": "esriFieldTypeInteger", - "alias": "BHSDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EnvScore", - "type": "esriFieldTypeDouble", - "alias": "EnvScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "EnvRank", - "type": "esriFieldTypeInteger", - "alias": "EnvRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "EnvDec", - "type": "esriFieldTypeInteger", - "alias": "EnvDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IDCScore", - "type": "esriFieldTypeDouble", - "alias": "IDCScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IDCRank", - "type": "esriFieldTypeInteger", - "alias": "IDCRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IDCDec", - "type": "esriFieldTypeInteger", - "alias": "IDCDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IDOScore", - "type": "esriFieldTypeDouble", - "alias": "IDOScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IDORank", - "type": "esriFieldTypeInteger", - "alias": "IDORank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IDODec", - "type": "esriFieldTypeInteger", - "alias": "IDODec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "CYPScore", - "type": "esriFieldTypeDouble", - "alias": "CYPScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "CYPRank", - "type": "esriFieldTypeInteger", - "alias": "CYPRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "CYPDec", - "type": "esriFieldTypeInteger", - "alias": "CYPDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "ASScore", - "type": "esriFieldTypeDouble", - "alias": "ASScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "ASRank", - "type": "esriFieldTypeInteger", - "alias": "ASRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "ASDec", - "type": "esriFieldTypeInteger", - "alias": "ASDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "GBScore", - "type": "esriFieldTypeDouble", - "alias": "GBScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "GBRank", - "type": "esriFieldTypeInteger", - "alias": "GBRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "GBDec", - "type": "esriFieldTypeInteger", - "alias": "GBDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "WBScore", - "type": "esriFieldTypeDouble", - "alias": "WBScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "WBRank", - "type": "esriFieldTypeInteger", - "alias": "WBRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "WBDec", - "type": "esriFieldTypeInteger", - "alias": "WBDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IndScore", - "type": "esriFieldTypeDouble", - "alias": "IndScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "IndRank", - "type": "esriFieldTypeInteger", - "alias": "IndRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "IndDec", - "type": "esriFieldTypeInteger", - "alias": "IndDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "OutScore", - "type": "esriFieldTypeDouble", - "alias": "OutScore", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "OutRank", - "type": "esriFieldTypeInteger", - "alias": "OutRank", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "OutDec", - "type": "esriFieldTypeInteger", - "alias": "OutDec", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "TotPop", - "type": "esriFieldTypeInteger", - "alias": "TotPop", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "DepChi", - "type": "esriFieldTypeInteger", - "alias": "DepChi", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "Pop16_59", - "type": "esriFieldTypeInteger", - "alias": "Pop16_59", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "Pop60_", - "type": "esriFieldTypeInteger", - "alias": "Pop60+", - "sqlType": "sqlTypeInteger", - "domain": null, - "defaultValue": null - }, - { - "name": "WorkPop", - "type": "esriFieldTypeDouble", - "alias": "WorkPop", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "Shape__Area", - "type": "esriFieldTypeDouble", - "alias": "Shape__Area", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - }, - { - "name": "Shape__Length", - "type": "esriFieldTypeDouble", - "alias": "Shape__Length", - "sqlType": "sqlTypeFloat", - "domain": null, - "defaultValue": null - } - ], - "features": [ - { - "attributes": { - "FID": 406, - "lsoa11cd": "E01000002", - "lsoa11nm": "City of London 001B", - "lsoa11nmw": "City of London 001B", - "st_areasha": 226191.27299, - "st_lengths": 2433.96011194923, - "IMD_Rank": 30379, - "IMD_Decile": 10, - "LSOA01NM": "City of London 001B", - "LADcd": "E09000001", - "LADnm": "City of London", - "IMDScore": 5.143, - "IMDRank0": 30379, - "IMDDec0": 10, - "IncScore": 0.034, - "IncRank": 29901, - "IncDec": 10, - "EmpScore": 0.027, - "EmpRank": 31190, - "EmpDec": 10, - "EduScore": 0.063, - "EduRank": 32832, - "EduDec": 10, - "HDDScore": -1.115, - "HDDRank": 29705, - "HDDDec": 10, - "CriScore": -2.343, - "CriRank": 32789, - "CriDec": 10, - "BHSScore": 24.412, - "BHSRank": 11707, - "BHSDec": 4, - "EnvScore": 23.084, - "EnvRank": 13070, - "EnvDec": 4, - "IDCScore": 0.037, - "IDCRank": 29682, - "IDCDec": 10, - "IDOScore": 0.03, - "IDORank": 31938, - "IDODec": 10, - "CYPScore": -1.907, - "CYPRank": 32666, - "CYPDec": 10, - "ASScore": 0.034, - "ASRank": 32841, - "ASDec": 10, - "GBScore": -1.06, - "GBRank": 30223, - "GBDec": 10, - "WBScore": 3.231, - "WBRank": 3894, - "WBDec": 2, - "IndScore": -0.41, - "IndRank": 22676, - "IndDec": 7, - "OutScore": 1.196, - "OutRank": 2969, - "OutDec": 1, - "TotPop": 1156, - "DepChi": 182, - "Pop16_59": 580, - "Pop60_": 394, - "WorkPop": 619.75, - "Shape__Area": 583474.041778564, - "Shape__Length": 3910.3872398064 - } - }, - { - "attributes": { - "FID": 11200, - "lsoa11cd": "E01011107", - "lsoa11nm": "Kirklees 029D", - "lsoa11nmw": "Kirklees 029D", - "st_areasha": 1921709.0189415, - "st_lengths": 7525.08646263709, - "IMD_Rank": 2928, - "IMD_Decile": 1, - "LSOA01NM": "Kirklees 029D", - "LADcd": "E08000034", - "LADnm": "Kirklees", - "IMDScore": 45.619, - "IMDRank0": 2928, - "IMDDec0": 1, - "IncScore": 0.256, - "IncRank": 3753, - "IncDec": 2, - "EmpScore": 0.176, - "EmpRank": 4566, - "EmpDec": 2, - "EduScore": 41.123, - "EduRank": 5096, - "EduDec": 2, - "HDDScore": 0.746, - "HDDRank": 6409, - "HDDDec": 2, - "CriScore": 1.156, - "CriRank": 2488, - "CriDec": 1, - "BHSScore": 35.915, - "BHSRank": 3677, - "BHSDec": 2, - "EnvScore": 44.867, - "EnvRank": 2932, - "EnvDec": 1, - "IDCScore": 0.304, - "IDCRank": 4202, - "IDCDec": 2, - "IDOScore": 0.417, - "IDORank": 1575, - "IDODec": 1, - "CYPScore": 0.214, - "CYPRank": 12672, - "CYPDec": 4, - "ASScore": 0.505, - "ASRank": 1936, - "ASDec": 1, - "GBScore": 0.17, - "GBRank": 12735, - "GBDec": 4, - "WBScore": 3.561, - "WBRank": 3273, - "WBDec": 1, - "IndScore": 0.962, - "IndRank": 4158, - "IndDec": 2, - "OutScore": 0.939, - "OutRank": 4601, - "OutDec": 2, - "TotPop": 2062, - "DepChi": 399, - "Pop16_59": 1532, - "Pop60_": 131, - "WorkPop": 1529.75, - "Shape__Area": 5463700.64208984, - "Shape__Length": 12690.4719307202 - } - }, - { - "attributes": { - "FID": 11707, - "lsoa11cd": "E01011229", - "lsoa11nm": "Kirklees 042D", - "lsoa11nmw": "Kirklees 042D", - "st_areasha": 833129.6049955, - "st_lengths": 7023.19222823396, - "IMD_Rank": 9558, - "IMD_Decile": 3, - "LSOA01NM": "Kirklees 042D", - "LADcd": "E08000034", - "LADnm": "Kirklees", - "IMDScore": 27.05, - "IMDRank0": 9558, - "IMDDec0": 3, - "IncScore": 0.092, - "IncRank": 17587, - "IncDec": 6, - "EmpScore": 0.068, - "EmpRank": 19370, - "EmpDec": 6, - "EduScore": 25.872, - "EduRank": 10382, - "EduDec": 4, - "HDDScore": 1.036, - "HDDRank": 3957, - "HDDDec": 2, - "CriScore": 0.368, - "CriRank": 10920, - "CriDec": 4, - "BHSScore": 27.764, - "BHSRank": 8639, - "BHSDec": 3, - "EnvScore": 54.078, - "EnvRank": 1300, - "EnvDec": 1, - "IDCScore": 0.181, - "IDCRank": 11445, - "IDCDec": 4, - "IDOScore": 0.399, - "IDORank": 1878, - "IDODec": 1, - "CYPScore": 0.355, - "CYPRank": 10686, - "CYPDec": 4, - "ASScore": 0.358, - "ASRank": 10072, - "ASDec": 4, - "GBScore": -0.003, - "GBRank": 15718, - "GBDec": 5, - "WBScore": 2.435, - "WBRank": 5703, - "WBDec": 2, - "IndScore": 1.44, - "IndRank": 1309, - "IndDec": 1, - "OutScore": 0.35, - "OutRank": 10106, - "OutDec": 4, - "TotPop": 4030, - "DepChi": 217, - "Pop16_59": 3576, - "Pop60_": 237, - "WorkPop": 3597.75, - "Shape__Area": 2367401.27246094, - "Shape__Length": 11837.8506456805 - } - } - ] -} diff --git a/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-db1e5c.json b/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-db1e5c.json deleted file mode 100644 index 687fa32..0000000 --- a/tests/testthat/imd/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-db1e5c.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "objectIdFieldName": "FID", - "objectIds": [ - 11707, - 11200, - 406 - ] -} diff --git a/tests/testthat/imd_message/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-9acbf6.json b/tests/testthat/imd_message/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-9acbf6.json deleted file mode 100644 index 866f71c..0000000 --- a/tests/testthat/imd_message/services3.arcgis.com/ivmBBrHfQfDnDf8Q/arcgis/rest/services/Indices_of_Multiple_Deprivation_(IMD)_2019/FeatureServer/0/query-9acbf6.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "objectIdFieldName": "FID", - "objectIds": [ - - ] -} diff --git a/tests/testthat/postcode_message/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json b/tests/testthat/postcode_message/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json deleted file mode 100644 index 5993812..0000000 --- a/tests/testthat/postcode_message/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": { - "limit": "1", - "longitude": -1.780629, - "latitude": 53.643909 - }, - "result": [ - { - "postcode": "HD1 2RD", - "quality": 1, - "eastings": 414639, - "northings": 416430, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.780038, - "latitude": 53.644178, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 029D", - "msoa": "Kirklees 029", - "incode": "2RD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011107", - "msoa": "E02002299", - "lau2": "E08000034", - "pfa": "E23000010" - }, - "distance": 49.23421539 - } - ] - } - ] -} diff --git a/tests/testthat/postcode_message/api.postcodes.io/postcodes-c36e7a-POST.json b/tests/testthat/postcode_message/api.postcodes.io/postcodes-c36e7a-POST.json deleted file mode 100644 index 608c657..0000000 --- a/tests/testthat/postcode_message/api.postcodes.io/postcodes-c36e7a-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UU", - "result": { - "postcode": "HD1 2UU", - "quality": 1, - "eastings": 414433, - "northings": 416422, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.783154, - "latitude": 53.644112, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UU", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198604", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/postcode_message/api.postcodes.io/postcodes-e836c0-POST.json b/tests/testthat/postcode_message/api.postcodes.io/postcodes-e836c0-POST.json deleted file mode 100644 index 5bfffb7..0000000 --- a/tests/testthat/postcode_message/api.postcodes.io/postcodes-e836c0-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UD", - "result": { - "postcode": "HD1 2UD", - "quality": 1, - "eastings": 414371, - "northings": 416317, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.784097, - "latitude": 53.64317, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json b/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json deleted file mode 100644 index f87fee6..0000000 --- a/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "status": 200, - "result": [ - "HD1 2UD" - ] -} diff --git a/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UT/validate.json b/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UT/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UT/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UU/validate.json b/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UU/validate.json deleted file mode 100644 index d256ef7..0000000 --- a/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UU/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": true -} diff --git a/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UV/validate.json b/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UV/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/postcode_message/api.postcodes.io/postcodes/HD1%202UV/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/postcode_message/api.postcodes.io/terminated_postcodes/HD1%202UT.json b/tests/testthat/postcode_message/api.postcodes.io/terminated_postcodes/HD1%202UT.json deleted file mode 100644 index f7cb0bf..0000000 --- a/tests/testthat/postcode_message/api.postcodes.io/terminated_postcodes/HD1%202UT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status": 200, - "result": { - "postcode": "HD1 2UT", - "year_terminated": 1986, - "month_terminated": 12, - "longitude": -1.780629, - "latitude": 53.643909 - } -} diff --git a/tests/testthat/postcode_message/api.postcodes.io/terminated_postcodes/HD1%202UV.R b/tests/testthat/postcode_message/api.postcodes.io/terminated_postcodes/HD1%202UV.R deleted file mode 100644 index 0aeba8d..0000000 --- a/tests/testthat/postcode_message/api.postcodes.io/terminated_postcodes/HD1%202UV.R +++ /dev/null @@ -1,20 +0,0 @@ -structure(list( - method = "GET", url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - status_code = 404L, headers = structure(list( - Date = "Tue, 12 Mar 2024 18:18:22 GMT", - `Content-Type` = "application/json; charset=utf-8", `Transfer-Encoding` = "chunked", - Connection = "keep-alive", `x-gnu` = "Michael J Blanchard", - `access-control-allow-origin` = "*", etag = "W/\"36-GttZSTwwwLlS7Lnu5NllR3pXy/E\"", - `CF-Cache-Status` = "HIT", Age = "225", `Report-To` = "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Ihy2PqF2fvNyFK9E3A2csNCsIZfwUUalfYc4VYr%2FaJDjohKDR1IdbxdyZ6AvHewnBy3o9YH9XsMZBeMhaBWCsGZVPYv%2BPlNisasaCmW8hEsz3KnkW8v2VFpW%2Bnr0gdUqJHw%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", - NEL = "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", - Vary = "Accept-Encoding", Server = "cloudflare", `CF-RAY` = "8635c955a9b2073a-LHR", - `Content-Encoding` = "gzip" - ), class = "httr2_headers"), - body = charToRaw("{\"status\":404,\"error\":\"Terminated postcode not found\"}"), - request = structure(list( - url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - method = NULL, headers = list(), body = NULL, fields = list(), - options = list(useragent = "github.com/nhs-r-community/NHSRpopulation // httr2"), - policies = list() - ), class = "httr2_request"), cache = new.env(parent = emptyenv()) -), class = "httr2_response") diff --git a/tests/testthat/postcode_message/services1.arcgis.com/ESMARspQHYMw9BZ9/ArcGIS/rest/services/Online_ONS_Postcode_Directory_Live/FeatureServer/0/query-7dbeef.json b/tests/testthat/postcode_message/services1.arcgis.com/ESMARspQHYMw9BZ9/ArcGIS/rest/services/Online_ONS_Postcode_Directory_Live/FeatureServer/0/query-7dbeef.json deleted file mode 100644 index 8ef6324..0000000 --- a/tests/testthat/postcode_message/services1.arcgis.com/ESMARspQHYMw9BZ9/ArcGIS/rest/services/Online_ONS_Postcode_Directory_Live/FeatureServer/0/query-7dbeef.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "objectIdFieldName": "OBJECTID", - "objectIds": [ - 686162, - 686180, - 686184 - ] -} diff --git a/tests/testthat/postcode_message/services1.arcgis.com/ESMARspQHYMw9BZ9/ArcGIS/rest/services/Online_ONS_Postcode_Directory_Live/FeatureServer/0/query-f8b3dd.json b/tests/testthat/postcode_message/services1.arcgis.com/ESMARspQHYMw9BZ9/ArcGIS/rest/services/Online_ONS_Postcode_Directory_Live/FeatureServer/0/query-f8b3dd.json deleted file mode 100644 index 8c53b40..0000000 --- a/tests/testthat/postcode_message/services1.arcgis.com/ESMARspQHYMw9BZ9/ArcGIS/rest/services/Online_ONS_Postcode_Directory_Live/FeatureServer/0/query-f8b3dd.json +++ /dev/null @@ -1,541 +0,0 @@ -{ - "objectIdFieldName": "OBJECTID", - "uniqueIdField": { - "name": "OBJECTID", - "isSystemMaintained": true - }, - "globalIdFieldName": "", - "geometryType": "esriGeometryPoint", - "spatialReference": { - "wkid": 27700, - "latestWkid": 27700 - }, - "fields": [ - { - "name": "OBJECTID", - "type": "esriFieldTypeOID", - "alias": "OBJECTID", - "sqlType": "sqlTypeOther", - "domain": null, - "defaultValue": null - }, - { - "name": "PCD", - "type": "esriFieldTypeString", - "alias": "PCD", - "sqlType": "sqlTypeOther", - "length": 7, - "domain": null, - "defaultValue": null - }, - { - "name": "PCD2", - "type": "esriFieldTypeString", - "alias": "PCD2", - "sqlType": "sqlTypeOther", - "length": 8, - "domain": null, - "defaultValue": null - }, - { - "name": "PCDS", - "type": "esriFieldTypeString", - "alias": "PCDS", - "sqlType": "sqlTypeOther", - "length": 8, - "domain": null, - "defaultValue": null - }, - { - "name": "DOINTR", - "type": "esriFieldTypeString", - "alias": "DOINTR", - "sqlType": "sqlTypeOther", - "length": 6, - "domain": null, - "defaultValue": null - }, - { - "name": "DOTERM", - "type": "esriFieldTypeString", - "alias": "DOTERM", - "sqlType": "sqlTypeOther", - "length": 6, - "domain": null, - "defaultValue": null - }, - { - "name": "OSCTY", - "type": "esriFieldTypeString", - "alias": "OSCTY", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "CED", - "type": "esriFieldTypeString", - "alias": "CED", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "OSLAUA", - "type": "esriFieldTypeString", - "alias": "OSLAUA", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "OSWARD", - "type": "esriFieldTypeString", - "alias": "OSWARD", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "USERTYPE", - "type": "esriFieldTypeString", - "alias": "USERTYPE", - "sqlType": "sqlTypeOther", - "length": 1, - "domain": null, - "defaultValue": null - }, - { - "name": "OSEAST1M", - "type": "esriFieldTypeString", - "alias": "OSEAST1M", - "sqlType": "sqlTypeOther", - "length": 6, - "domain": null, - "defaultValue": null - }, - { - "name": "OSNRTH1M", - "type": "esriFieldTypeString", - "alias": "OSNRTH1M", - "sqlType": "sqlTypeOther", - "length": 7, - "domain": null, - "defaultValue": null - }, - { - "name": "OSGRDIND", - "type": "esriFieldTypeString", - "alias": "OSGRDIND", - "sqlType": "sqlTypeOther", - "length": 1, - "domain": null, - "defaultValue": null - }, - { - "name": "OSHLTHAU", - "type": "esriFieldTypeString", - "alias": "OSHLTHAU", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "NHSER", - "type": "esriFieldTypeString", - "alias": "NHSER", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "CTRY", - "type": "esriFieldTypeString", - "alias": "CTRY", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "RGN", - "type": "esriFieldTypeString", - "alias": "RGN", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "PCON", - "type": "esriFieldTypeString", - "alias": "PCON", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "TTWA", - "type": "esriFieldTypeString", - "alias": "TTWA", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "PARK", - "type": "esriFieldTypeString", - "alias": "PARK", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "OA11", - "type": "esriFieldTypeString", - "alias": "OA11", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "LSOA11", - "type": "esriFieldTypeString", - "alias": "LSOA11", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "MSOA11", - "type": "esriFieldTypeString", - "alias": "MSOA11", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "PARISH", - "type": "esriFieldTypeString", - "alias": "PARISH", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "WZ11", - "type": "esriFieldTypeString", - "alias": "WZ11", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "SICBL", - "type": "esriFieldTypeString", - "alias": "SICBL", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "BUA11", - "type": "esriFieldTypeString", - "alias": "BUA11", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "BUASD11", - "type": "esriFieldTypeString", - "alias": "BUASD11", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "RU11IND", - "type": "esriFieldTypeString", - "alias": "RU11IND", - "sqlType": "sqlTypeOther", - "length": 2, - "domain": null, - "defaultValue": null - }, - { - "name": "OAC11", - "type": "esriFieldTypeString", - "alias": "OAC11", - "sqlType": "sqlTypeOther", - "length": 3, - "domain": null, - "defaultValue": null - }, - { - "name": "LAT", - "type": "esriFieldTypeSingle", - "alias": "LAT", - "sqlType": "sqlTypeOther", - "domain": null, - "defaultValue": null - }, - { - "name": "LONG", - "type": "esriFieldTypeSingle", - "alias": "LONG", - "sqlType": "sqlTypeOther", - "domain": null, - "defaultValue": null - }, - { - "name": "LEP1", - "type": "esriFieldTypeString", - "alias": "LEP1", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "LEP2", - "type": "esriFieldTypeString", - "alias": "LEP2", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "PFA", - "type": "esriFieldTypeString", - "alias": "PFA", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "IMD", - "type": "esriFieldTypeInteger", - "alias": "IMD", - "sqlType": "sqlTypeOther", - "domain": null, - "defaultValue": null - }, - { - "name": "CALNCV", - "type": "esriFieldTypeString", - "alias": "CALNCV", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "ICB", - "type": "esriFieldTypeString", - "alias": "ICB", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "ITL", - "type": "esriFieldTypeString", - "alias": "ITL", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "OA21", - "type": "esriFieldTypeString", - "alias": "OA21", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "LSOA21", - "type": "esriFieldTypeString", - "alias": "LSOA21", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - }, - { - "name": "MSOA21", - "type": "esriFieldTypeString", - "alias": "MSOA21", - "sqlType": "sqlTypeOther", - "length": 9, - "domain": null, - "defaultValue": null - } - ], - "features": [ - { - "attributes": { - "OBJECTID": 686162, - "PCD": "HD1 2RD", - "PCD2": "HD1 2RD", - "PCDS": "HD1 2RD", - "DOINTR": "198001", - "DOTERM": null, - "OSCTY": "E99999999", - "CED": "E99999999", - "OSLAUA": "E08000034", - "OSWARD": "E05001410", - "USERTYPE": "0", - "OSEAST1M": "414639", - "OSNRTH1M": "0416430", - "OSGRDIND": "1", - "OSHLTHAU": "E18000003", - "NHSER": "E40000012", - "CTRY": "E92000001", - "RGN": "E12000003", - "PCON": "E14000756", - "TTWA": "E30000219", - "PARK": "E65000001", - "OA11": "E00055983", - "LSOA11": "E01011107", - "MSOA11": "E02002299", - "PARISH": "E43000188", - "WZ11": "E33009457", - "SICBL": "E38000254", - "BUA11": "E34004684", - "BUASD11": "E35001402", - "RU11IND": "A1", - "OAC11": "3A2", - "LAT": 53.64418, - "LONG": -1.780038, - "LEP1": "E37000062", - "LEP2": null, - "PFA": "E23000010", - "IMD": 2928, - "CALNCV": "E56000030", - "ICB": "E54000054", - "ITL": "E08000034", - "OA21": "E00178700", - "LSOA21": "E01011107", - "MSOA21": "E02002299" - } - }, - { - "attributes": { - "OBJECTID": 686180, - "PCD": "HD1 2UD", - "PCD2": "HD1 2UD", - "PCDS": "HD1 2UD", - "DOINTR": "198001", - "DOTERM": null, - "OSCTY": "E99999999", - "CED": "E99999999", - "OSLAUA": "E08000034", - "OSWARD": "E05001410", - "USERTYPE": "0", - "OSEAST1M": "414371", - "OSNRTH1M": "0416317", - "OSGRDIND": "1", - "OSHLTHAU": "E18000003", - "NHSER": "E40000012", - "CTRY": "E92000001", - "RGN": "E12000003", - "PCON": "E14000756", - "TTWA": "E30000219", - "PARK": "E65000001", - "OA11": "E00056549", - "LSOA11": "E01011229", - "MSOA11": "E02002312", - "PARISH": "E43000188", - "WZ11": "E33009493", - "SICBL": "E38000254", - "BUA11": "E34004684", - "BUASD11": "E35001402", - "RU11IND": "A1", - "OAC11": "3C1", - "LAT": 53.64317, - "LONG": -1.784097, - "LEP1": "E37000062", - "LEP2": null, - "PFA": "E23000010", - "IMD": 9558, - "CALNCV": "E56000030", - "ICB": "E54000054", - "ITL": "E08000034", - "OA21": "E00056549", - "LSOA21": "E01011229", - "MSOA21": "E02002312" - } - }, - { - "attributes": { - "OBJECTID": 686184, - "PCD": "HD1 2UU", - "PCD2": "HD1 2UU", - "PCDS": "HD1 2UU", - "DOINTR": "198604", - "DOTERM": null, - "OSCTY": "E99999999", - "CED": "E99999999", - "OSLAUA": "E08000034", - "OSWARD": "E05001410", - "USERTYPE": "1", - "OSEAST1M": "414433", - "OSNRTH1M": "0416422", - "OSGRDIND": "1", - "OSHLTHAU": "E18000003", - "NHSER": "E40000012", - "CTRY": "E92000001", - "RGN": "E12000003", - "PCON": "E14000756", - "TTWA": "E30000219", - "PARK": "E65000001", - "OA11": "E00056549", - "LSOA11": "E01011229", - "MSOA11": "E02002312", - "PARISH": "E43000188", - "WZ11": "E33009497", - "SICBL": "E38000254", - "BUA11": "E34004684", - "BUASD11": "E35001402", - "RU11IND": "A1", - "OAC11": "3C1", - "LAT": 53.64411, - "LONG": -1.783154, - "LEP1": "E37000062", - "LEP2": null, - "PFA": "E23000010", - "IMD": 9558, - "CALNCV": "E56000030", - "ICB": "E54000054", - "ITL": "E08000034", - "OA21": "E00056549", - "LSOA21": "E01011229", - "MSOA21": "E02002312" - } - } - ] -} diff --git a/tests/testthat/postcodes/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json b/tests/testthat/postcodes/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json deleted file mode 100644 index 5993812..0000000 --- a/tests/testthat/postcodes/api.postcodes.io/postcodes-b93a9c-dca3bd-POST.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": { - "limit": "1", - "longitude": -1.780629, - "latitude": 53.643909 - }, - "result": [ - { - "postcode": "HD1 2RD", - "quality": 1, - "eastings": 414639, - "northings": 416430, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.780038, - "latitude": 53.644178, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 029D", - "msoa": "Kirklees 029", - "incode": "2RD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011107", - "msoa": "E02002299", - "lau2": "E08000034", - "pfa": "E23000010" - }, - "distance": 49.23421539 - } - ] - } - ] -} diff --git a/tests/testthat/postcodes/api.postcodes.io/postcodes-c36e7a-POST.json b/tests/testthat/postcodes/api.postcodes.io/postcodes-c36e7a-POST.json deleted file mode 100644 index 608c657..0000000 --- a/tests/testthat/postcodes/api.postcodes.io/postcodes-c36e7a-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UU", - "result": { - "postcode": "HD1 2UU", - "quality": 1, - "eastings": 414433, - "northings": 416422, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.783154, - "latitude": 53.644112, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UU", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198604", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/postcodes/api.postcodes.io/postcodes-e836c0-POST.json b/tests/testthat/postcodes/api.postcodes.io/postcodes-e836c0-POST.json deleted file mode 100644 index 5bfffb7..0000000 --- a/tests/testthat/postcodes/api.postcodes.io/postcodes-e836c0-POST.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "status": 200, - "result": [ - { - "query": "HD1 2UD", - "result": { - "postcode": "HD1 2UD", - "quality": 1, - "eastings": 414371, - "northings": 416317, - "country": "England", - "nhs_ha": "Yorkshire and the Humber", - "longitude": -1.784097, - "latitude": 53.64317, - "european_electoral_region": "Yorkshire and The Humber", - "primary_care_trust": "Kirklees", - "region": "Yorkshire and The Humber", - "lsoa": "Kirklees 042D", - "msoa": "Kirklees 042", - "incode": "2UD", - "outcode": "HD1", - "parliamentary_constituency": "Huddersfield", - "parliamentary_constituency_2024": "Huddersfield", - "admin_district": "Kirklees", - "parish": "Kirklees, unparished area", - "admin_county": null, - "date_of_introduction": "198001", - "admin_ward": "Newsome", - "ced": null, - "ccg": "NHS West Yorkshire", - "nuts": "Kirklees", - "pfa": "West Yorkshire", - "codes": { - "admin_district": "E08000034", - "admin_county": "E99999999", - "admin_ward": "E05001410", - "parish": "E43000188", - "parliamentary_constituency": "E14000756", - "parliamentary_constituency_2024": "E14001297", - "ccg": "E38000254", - "ccg_id": "X2C4Y", - "ced": "E99999999", - "nuts": "TLE44", - "lsoa": "E01011229", - "msoa": "E02002312", - "lau2": "E08000034", - "pfa": "E23000010" - } - } - } - ] -} diff --git a/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json b/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json deleted file mode 100644 index f87fee6..0000000 --- a/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202U/autocomplete-b93a9c.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "status": 200, - "result": [ - "HD1 2UD" - ] -} diff --git a/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UT/validate.json b/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UT/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UT/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UU/validate.json b/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UU/validate.json deleted file mode 100644 index d256ef7..0000000 --- a/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UU/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": true -} diff --git a/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UV/validate.json b/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UV/validate.json deleted file mode 100644 index 3279e5a..0000000 --- a/tests/testthat/postcodes/api.postcodes.io/postcodes/HD1%202UV/validate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": 200, - "result": false -} diff --git a/tests/testthat/postcodes/api.postcodes.io/terminated_postcodes/HD1%202UT.json b/tests/testthat/postcodes/api.postcodes.io/terminated_postcodes/HD1%202UT.json deleted file mode 100644 index f7cb0bf..0000000 --- a/tests/testthat/postcodes/api.postcodes.io/terminated_postcodes/HD1%202UT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "status": 200, - "result": { - "postcode": "HD1 2UT", - "year_terminated": 1986, - "month_terminated": 12, - "longitude": -1.780629, - "latitude": 53.643909 - } -} diff --git a/tests/testthat/postcodes/api.postcodes.io/terminated_postcodes/HD1%202UV.R b/tests/testthat/postcodes/api.postcodes.io/terminated_postcodes/HD1%202UV.R deleted file mode 100644 index 7e59e6f..0000000 --- a/tests/testthat/postcodes/api.postcodes.io/terminated_postcodes/HD1%202UV.R +++ /dev/null @@ -1,20 +0,0 @@ -structure(list( - method = "GET", url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - status_code = 404L, headers = structure(list( - Date = "Fri, 15 Mar 2024 18:33:06 GMT", - `Content-Type` = "application/json; charset=utf-8", `Transfer-Encoding` = "chunked", - Connection = "keep-alive", `x-gnu` = "Michael J Blanchard", - `access-control-allow-origin` = "*", etag = "W/\"36-GttZSTwwwLlS7Lnu5NllR3pXy/E\"", - `CF-Cache-Status` = "HIT", Age = "174428", `Report-To` = "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=f0zCBaPHKLICjE8DTMw8VKWl8A%2FMkqJavhniBEfjxPBdSiHjUlGglQUWex2gpke33QY6JbwZB9OKplr5iPB1Nf62ouxourS1udPkBJtfwLV8CGB2CLR%2FA3gqfm0MrIJ6Brk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", - NEL = "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", - Vary = "Accept-Encoding", Server = "cloudflare", `CF-RAY` = "864e97061a5b23d8-LHR", - `Content-Encoding` = "gzip" - ), class = "httr2_headers"), - body = charToRaw("{\"status\":404,\"error\":\"Terminated postcode not found\"}"), - request = structure(list( - url = "https://api.postcodes.io/terminated_postcodes/HD1%202UV", - method = NULL, headers = list(), body = NULL, fields = list(), - options = list(useragent = "github.com/nhs-r-community/NHSRpopulation // httr2"), - policies = list() - ), class = "httr2_request"), cache = new.env(parent = emptyenv()) -), class = "httr2_response") diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R deleted file mode 100644 index 4c9cf1d..0000000 --- a/tests/testthat/setup.R +++ /dev/null @@ -1 +0,0 @@ -library(httptest2)