USEPA / ccdR

Utilities for Interacting with the CTX APIs in R without prior API knowledge. All data is also available on the CompTox Chemical Dashboard (CCD) https://comptox.epa.gov/dashboard/
https://api-ccte.epa.gov/docs/
GNU General Public License v3.0
2 stars 0 forks source link

chemical test failure #19

Closed brown-jason closed 4 months ago

brown-jason commented 5 months ago

══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-chemical-APIs.R:146:3'): Return data type ────────────────────── Error: GET https://api-ccte.epa.gov/chemical/list/search/by-name/BIOSOLIDS2021 (chemical/list/search/by-name/BIOSOLIDS2021.json) Backtrace: ▆

  1. ├─testthat::expect_type(...) at test-chemical-APIs.R:146:3
  2. │ └─testthat::quasi_label(enquo(object), arg = "object")
  3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
  4. └─ccdR::get_public_chemical_list_by_name(...)
  5. └─httr::GET(...)
  6. └─httr:::request_perform(req, hu$handle$handle)
  7. └─httr:::request_fetch(req$output, req$url, handle)
  8. └─httptest (local) <fn>(req)
  9. └─httptest:::stop_request(req)

[ FAIL 1 | WARN 0 | SKIP 0 | PASS 422 ] Error: Test failures Execution halted

brown-jason commented 4 months ago

@rachmaninoffpk I have no idea why this one single test is not working. Can you take a look?

rachmaninoffpk commented 4 months ago

Sure thing. I will start tinkering.

rachmaninoffpk commented 4 months ago

It looks like there was an issue with case-sensitive input parameters. Changing the value to match other tests ('BIOSOLIDS2021' to 'Biosolids2021') seems to have resolved the issue locally.