tests/testthat/test_location.R

context("Testing Location Lookup functionality")

test_that("Testing if location lookup function gives correct output", {

  key = "ba435151893f4b833c9b27ca6f28044f"
  res = weatherstack_Lookup(key, "London")

  expect_equal(as.character(res[1, "request.query"]), "London")

})
Yuening-Li/weatherstack documentation built on Feb. 16, 2020, 5:42 a.m.