Running 'testthat.R' [8s]
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(BrazilDataAPI)
  > 
  > test_check("BrazilDataAPI")
  Error: Received status code 400
  Error: Received status code 404
  Error: status 400 - CNPJ not found or invalid.
  Error: status 404 - CNPJ not found or invalid.
  Error: Received status code 500
  Error: Received status code 500
  Error: Received status code 400
  Error: Received status code 500
  API request failed with status: 404
  Datasets available in the 'BrazilDataAPI' package:
  Datasets available in the 'BrazilDataAPI' package:
  [ FAIL 6 | WARN 0 | SKIP 19 | PASS 96 ]
  
  ══ Skipped tests (19) ══════════════════════════════════════════════════════════
  • On CRAN (19): 'test-get_brazil_banks.R:23:3', 'test-get_brazil_banks.R:42:3',
    'test-get_brazil_cep.R:23:3', 'test-get_brazil_cep.R:51:3',
    'test-get_brazil_cnpj.R:23:3', 'test-get_brazil_cnpj.R:57:3',
    'test-get_brazil_municipalities.R:23:3',
    'test-get_brazil_municipalities.R:44:3',
    'test-get_brazil_municipalities.R:50:3', 'test-get_brazil_rate_name.R:24:3',
    'test-get_brazil_rate_name.R:37:3', 'test-get_brazil_rate_name.R:50:3',
    'test-get_brazil_rate_name.R:63:3', 'test-get_brazil_rate_name.R:71:3',
    'test-get_brazil_rate_name.R:83:3', 'test-get_brazil_rates.R:23:3',
    'test-get_brazil_rates.R:44:3', 'test-get_brazil_rates.R:55:3',
    'test-get_brazil_rates.R:61:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_brazil_vehicle_brands.R:24:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'carros' ──
  `result` is not an S3 object
  ── Failure ('test-get_brazil_vehicle_brands.R:25:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'carros' ──
  all(c("nome", "valor") %in% names(result)) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-get_brazil_vehicle_brands.R:36:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'caminhoes' ──
  `result` is not an S3 object
  ── Failure ('test-get_brazil_vehicle_brands.R:37:3'): get_brazil_vehicle_brands() returns a tibble with expected columns for 'caminhoes' ──
  all(c("nome", "valor") %in% names(result)) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-get_brazil_vehicle_brands.R:47:3'): get_brazil_vehicle_brands() handles empty string input and returns a tibble with error message ──
  `result` is not an S3 object
  ── Failure ('test-get_brazil_vehicle_brands.R:48:3'): get_brazil_vehicle_brands() handles empty string input and returns a tibble with error message ──
  all(c("message") %in% names(result)) || all(c("nome", "valor") %in% 
      names(result)) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 6 | WARN 0 | SKIP 19 | PASS 96 ]
  Error: Test failures
  Execution halted