tests/testthat/test-google_place_details.R

context("Google places details")


test_that("language is valid", {

  expect_error(google_place_details(language = c("english", "french")),
               "language must be a single string")

})

test_that("google place details is set",{

  g <- google_place_details(place_id = "abc", key = "abc")
  expect_true("html_attributions" %in% names(g))


})

Try the googleway package in your browser

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

googleway documentation built on Aug. 22, 2023, 9:13 a.m.