tests/testthat/test-block.R

test_that("blocking and unblocking users", {
  skip_if_offline()
  pf <- user_block("s_hesz")
  expect_equal(httr::status_code(pf), 200L)

  # unblocking
  pf <- user_unblock("s_hesz")
  expect_equal(httr::status_code(pf), 200L)
})

Try the rtweet package in your browser

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

rtweet documentation built on Oct. 17, 2023, 1:11 a.m.