tests/testthat/test-committee_meeting.R

with_mock_dir("t/meet", {
  test_that("cong_committee_meeting works", {
    x <- cong_committee_meeting()
    expect_s3_class(x, 'tbl_df')
  })
})

with_mock_dir("t/meet1", {
  test_that("cong_member with item works", {
    x <- cong_committee_meeting(congress = 118, chamber = 'house', number = '115538')
    expect_s3_class(x, 'tbl_df')
  })
})

Try the congress package in your browser

Any scripts or data that you put into this service are public.

congress documentation built on May 29, 2024, 2:37 a.m.