Running ‘testthat-all1q.R’
  Running ‘testthat-all2q.R’
  Running ‘testthat-b.R’
  Running ‘testthat-com.R’
  Running ‘testthat-con.R’
  Running ‘testthat-ea.R’
  Running ‘testthat-election_candidates.R’
  Running ‘testthat-election_results.R’
  Running ‘testthat-elections.R’
  Running ‘testthat-ep.R’
  Running ‘testthat-lords1.R’
  Running ‘testthat-lords2.R’
  Running ‘testthat-mem.R’
  Running ‘testthat-misc1.R’
  Running ‘testthat-misc2.R’
  Running ‘testthat-mp.R’
  Running ‘testthat-r.R’
Running the tests in ‘tests/testthat-all2q.R’ failed.
Complete output:
  > library(testthat)
  > library(hansard)
  > 
  > test_check("hansard", filter = "2all")
  ── 1. Error: all_answered_questions return expected format (@test_2all_answered_
  HTTP error 502.
  1: hansard_all_answered_questions(house = 2, answering_body = "Education", start_date = "2017-03-01", 
         end_date = "2017-03-20", verbose = TRUE) at testthat/test_2all_answered_questions.R:17
  2: jsonlite::fromJSON(paste0(baseurl, answering_member_query, tabling_member_query, 
         house_query, dept_query, dates, extra_args, "&_pageSize=1"), flatten = TRUE)
  3: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  4: parseJSON(txt, bigint_as_char)
  5: parse_con(txt, bigint_as_char)
  6: open(con, "rb")
  7: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 4 SKIPPED: 0 FAILED: 1
  1. Error: all_answered_questions return expected format (@test_2all_answered_questions.R#17) 
  
  Error: testthat unit tests failed
  Execution halted
Running the tests in ‘tests/testthat-r.R’ failed.
Complete output:
  > library(testthat)
  > library(hansard)
  > 
  > test_check("hansard", filter = "r")
  ── 1. Error: all_answered_questions return expected format (@test_2all_answered_
  HTTP error 502.
  1: hansard_all_answered_questions(house = 2, answering_body = "Education", start_date = "2017-03-01", 
         end_date = "2017-03-20", verbose = TRUE) at testthat/test_2all_answered_questions.R:17
  2: jsonlite::fromJSON(paste0(baseurl, answering_member_query, tabling_member_query, 
         house_query, dept_query, dates, extra_args, "&_pageSize=1"), flatten = TRUE)
  3: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  4: parseJSON(txt, bigint_as_char)
  5: parse_con(txt, bigint_as_char)
  6: open(con, "rb")
  7: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 4 SKIPPED: 7 FAILED: 1
  1. Error: all_answered_questions return expected format (@test_2all_answered_questions.R#17) 
  
  Error: testthat unit tests failed
  Execution halted