tests/testthat/test-print.R

test_that("notion_response prints prettily", {
  notion <- notion_client()

  vcr::local_cassette("notion-users-list")

  users <- notion$users$list()

  expect_s3_class(users, "notion_response")
  expect_snapshot({
    print(users)
  })
})

Try the notionapi package in your browser

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

notionapi documentation built on April 13, 2026, 9:07 a.m.