Running 'testthat.R' [13s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(bodsr)
  > 
  > test_check("bodsr")
  Reading file 1 of 1
  Reading file 1 of 1
  Reading file 1 of 1
  [ FAIL 1 | WARN 0 | SKIP 27 | PASS 17 ]
  
  ══ Skipped tests (27) ══════════════════════════════════════════════════════════
  • On CRAN (27): 'test-count_xml.R:3:3', 'test-count_xml.R:13:3',
    'test-get_fares_metadata.R:3:3', 'test-get_fares_metadata.R:23:3',
    'test-get_fares_metadata.R:33:3', 'test-get_fares_metadata.R:51:3',
    'test-get_fares_metadata.R:62:3', 'test-get_location_gtfs.R:3:3',
    'test-get_location_gtfs.R:11:3', 'test-get_location_gtfs.R:18:3',
    'test-get_location_gtfs.R:25:3', 'test-get_location_xml.R:10:3',
    'test-get_location_xml.R:21:3', 'test-get_location_xml.R:32:3',
    'test-get_timetable_data.R:3:3', 'test-get_timetable_data.R:12:3',
    'test-get_timetable_metadata.R:3:3', 'test-get_timetable_metadata.R:18:3',
    'test-get_timetable_metadata.R:27:3', 'test-get_timetable_metadata.R:42:3',
    'test-line_level_utils.R:13:3', 'test-line_level_utils.R:24:3',
    'test-line_level_utils.R:35:3', 'test-line_level_utils.R:48:3',
    'test-line_level_utils.R:61:3', 'test-line_level_utils.R:74:3',
    'test-noc_lookup.R:3:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_fares_metadata.R:14:3'): helpful error message with bad authentication ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: data.bus-data.dft.gov.uk
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-get_fares_metadata.R:14:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─bodsr::get_fares_metadata(api_key = "wrong_key")
    8.   └─httr::GET(url, ua)
    9.     └─httr:::request_perform(req, hu$handle$handle)
   10.       ├─httr:::request_fetch(req$output, req$url, handle)
   11.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.         └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 1 | WARN 0 | SKIP 27 | PASS 17 ]
  Error: Test failures
  Execution halted