-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for tidy cols that runs if comtrade api key is present
- Loading branch information
1 parent
dacc3b4
commit b169d95
Showing
5 changed files
with
75 additions
and
75 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
tests/testthat/data/comtradeapi.un.org/data/v1/get/C/A/HS-60a6ad.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"elapsedTime": "0.04 secs", | ||
"elapsedTime": "0.21 secs", | ||
"count": 4, | ||
"data": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 11 additions & 17 deletions
28
tests/testthat/services/comtradeapi.un.org/data/v1/get/S/A/EB-b31ccb.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
structure(list(method = "GET", url = "https://comtradeapi.un.org/data/v1/get/S/A/EB?cmdCode=200&partnerCode=32%2C280%2C276&reporterCode=156&period=2010&motCode=0&partner2Code=0&customsCode=C00&includeDesc=TRUE", #nolint | ||
status_code = 200L, | ||
headers = structure(list(`Transfer-Encoding` = "chunked", | ||
`Content-Type` = "application/json; charset=utf-8", | ||
`Content-Encoding` = "gzip", | ||
Vary = "Accept-Encoding", | ||
`Request-Context` = "appId=cid-v1:9b6e1d5a-3728-46ff-b743-6d33d23e54a6", | ||
`x-frame-options` = "deny", | ||
`X-Content-Type-Options` = "nosniff", | ||
`X-XSS-Protection` = "1;mode=block", | ||
`strict-transport-security` = "max-age=31536000;includeSubDomains", | ||
`content-security-policy` = "frame-src 'self'", | ||
`x-permitted-cross-domain-policies` = "none", | ||
`Referrer-Policy` = "no-referrer-when-downgrade", | ||
`Permissions-Policy` = "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()", # nolint | ||
Date = "Sun, 17 Dec 2023 21:56:49 GMT"), class = "httr2_headers"), | ||
body = charToRaw("{\"elapsedTime\":\"0.92 secs\",\"count\":0,\"data\":[],\"error\":\"\"}")), class = "httr2_response") # nolint | ||
structure(list(method = "GET", url = "https://comtradeapi.un.org/data/v1/get/S/A/EB?cmdCode=200&partnerCode=32%2C280%2C276&reporterCode=156&period=2010&motCode=0&partner2Code=0&customsCode=C00&includeDesc=TRUE", | ||
status_code = 200L, headers = structure(list(`Transfer-Encoding` = "chunked", | ||
`Content-Type` = "application/json; charset=utf-8", `Content-Encoding` = "gzip", | ||
Vary = "Accept-Encoding", `Request-Context` = "appId=cid-v1:9b6e1d5a-3728-46ff-b743-6d33d23e54a6", | ||
`x-frame-options` = "deny", `X-Content-Type-Options` = "nosniff", | ||
`X-XSS-Protection` = "1;mode=block", `strict-transport-security` = "max-age=31536000;includeSubDomains", | ||
`content-security-policy` = "frame-src 'self'", `x-permitted-cross-domain-policies` = "none", | ||
`Referrer-Policy` = "no-referrer-when-downgrade", `Permissions-Policy` = "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()", | ||
Date = "Fri, 15 Nov 2024 16:12:50 GMT"), class = "httr2_headers"), | ||
body = charToRaw("{\"elapsedTime\":\"0.58 secs\",\"count\":0,\"data\":[],\"error\":\"\"}"), | ||
cache = new.env(parent = emptyenv())), class = "httr2_response") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters