Running 'testthat.R' [20s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(wbids)
  > 
  > test_check("wbids")
  Downloading file to: D:\temp\2025_05_17_01_50_01_18477\Rtmp0cKW2M\file31b6032...
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 147 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-ids_bulk.R:5:3', 'test-ids_bulk.R:75:3',
    'test-ids_bulk.R:158:3', 'test-ids_bulk.R:204:3', 'test-ids_bulk.R:237:3',
    'test-ids_bulk.R:288:3', 'test-ids_bulk.R:344:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-perform_request.R:15:7'): perform_request handles error responses ──
  <httr2_http_400/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: HTTP 400 Bad Request.
  Backtrace:
       ▆
    1. ├─testthat::with_mocked_bindings(...) at test-perform_request.R:10:3
    2. ├─testthat::expect_error(perform_request("indicators"), "API error: Invalid indicator") at test-perform_request.R:15:7
    3. │ └─testthat:::expect_condition_matching(...)
    4. │   └─testthat:::quasi_capture(...)
    5. │     ├─testthat (local) .capture(...)
    6. │     │ └─base::withCallingHandlers(...)
    7. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. └─wbids:::perform_request("indicators")
    9.   └─httr2::req_perform(req)
   10.     └─httr2:::handle_resp(req, resp, error_call = error_call)
   11.       └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   12.         ├─rlang::catch_cnd(...)
   13.         │ ├─rlang::eval_bare(...)
   14.         │ ├─base::tryCatch(...)
   15.         │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.         │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.         │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   18.         │ └─base::force(expr)
   19.         └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 147 ]
  Error: Test failures
  Execution halted