Running 'testthat.R' [85s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rcongresso)
  > 
  > test_check("rcongresso")
  -- 1. Failure: GET deputado inexistente (@test_deputados.R#3)  -----------------
  `fetch_deputado(22)` did not throw an error.
  
  -- 2. Error: (unknown) (@test_deputados.R#10)  ---------------------------------
  Bad Request (HTTP 400).
  1: fetch_despesas_deputado(id_abel_mesquita) at testthat/test_deputados.R:10
  2: tibble::tibble(id = dep_id) %>% dplyr::mutate(path = paste0(.DEPUTADOS_PATH, "/", 
         id, "/despesas")) %>% dplyr::group_by(id, path) %>% dplyr::do(.congresso_api(.$path, 
         query)$dados) %>% dplyr::ungroup() %>% dplyr::mutate(idDep = .$id) %>% dplyr::select(-path, 
         -id)
  3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: eval(quote(`_fseq`(`_lhs`)), env, env)
  6: `_fseq`(`_lhs`)
  7: freduce(value, `_function_list`)
  8: function_list[[i]](value)
  9: dplyr::do(., .congresso_api(.$path, query)$dados)
  10: do.grouped_df(., .congresso_api(.$path, query)$dados)
  11: overscope_eval_next(overscope, args[[j]])
  12: .congresso_api(.$path, query)
  13: httr::stop_for_status(resp)
  
  -- 3. Failure: Atributos do dataframe (@test_proposicoes.R#50)  ----------------
  attributes(pec_241_por_id)$names not equal to `colnames_pec241_por_id`.
  4/13 mismatches
  x[9]: "uriAutores"
  y[9]: "tipoAutor"
  
  x[10]: "descricaoTipo"
  y[10]: "idTipoAutor"
  
  x[11]: "keywords"
  y[11]: "descricaoTipo"
  
  x[12]: "uriPropPosterior"
  y[12]: "keywords"
  
  -- 4. Failure: Campos do dataframe (@test_proposicoes.R#56)  -------------------
  sapply(pec_241_por_id, class) not equal to `tipos_pec241_por_id`.
  Names: 4 string mismatches
  
  -- 5. Failure: Dimensoes do dataframe (@test_votacoes.R#54)  -------------------
  dim(votos_pec241) not equal to c(478, 10).
  1/2 mismatches
  [1] 500 - 478 == 22
  
  == testthat results  ===========================================================
  OK: 48 SKIPPED: 0 FAILED: 5
  1. Failure: GET deputado inexistente (@test_deputados.R#3) 
  2. Error: (unknown) (@test_deputados.R#10) 
  3. Failure: Atributos do dataframe (@test_proposicoes.R#50) 
  4. Failure: Campos do dataframe (@test_proposicoes.R#56) 
  5. Failure: Dimensoes do dataframe (@test_votacoes.R#54) 
  
  Error: testthat unit tests failed
  Execution halted