Running 'testthat.R' [190s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rcongresso)
  > 
  > test_check("rcongresso")
  -- 1. Failure: Not Empty (@test_deputados.R#44)  -------------------------------
  nrow(dep_gastos) != 0 isn't true.
  
  -- 2. Error: Quantidade de itens por requisição (@test_proposicoes.R#83)  ------
  API did not return json
  1: expect_equal(dim(fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01", 
         itens = 386)), TAM_DF_386REQ) at testthat/test_proposicoes.R:83
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01", itens = 386)
  5: .fetch_using_queries(parametros, .PROPOSICOES_PATH) %>% .assert_dataframe_completo(.COLNAMES_PROPOSICAO) %>% 
         .coerce_types(.COLNAMES_PROPOSICAO)
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  8: .fetch_using_queries(parametros, .PROPOSICOES_PATH)
  9: .fetch_itens(.verifica_parametros_entrada(parametros), API_path)
  10: query %>% tibble::as.tibble() %>% dplyr::rowwise() %>% dplyr::do(.congresso_api(API_path, 
         .)) %>% dplyr::bind_rows(req_ultima_pagina %>% tibble::as.tibble() %>% dplyr::rowwise() %>% 
         dplyr::do(.congresso_api(API_path, .)))
  ...
  13: eval(quote(`_fseq`(`_lhs`)), env, env)
  14: `_fseq`(`_lhs`)
  15: freduce(value, `_function_list`)
  16: function_list[[i]](value)
  17: dplyr::do(., .congresso_api(API_path, .))
  18: do.rowwise_df(., .congresso_api(API_path, .))
  19: eval_tidy(args[[j]], mask)
  20: .congresso_api(API_path, .)
  21: .get_from_api(path, query)
  22: stop(.ERRO_RETORNO_JSON, call. = FALSE)
  
  == testthat results  ===========================================================
  OK: 72 SKIPPED: 0 FAILED: 2
  1. Failure: Not Empty (@test_deputados.R#44) 
  2. Error: Quantidade de itens por requisição (@test_proposicoes.R#83) 
  
  Error: testthat unit tests failed
  Execution halted