Skip to content

Commit

Permalink
Add test for throttle rate
Browse files Browse the repository at this point in the history
  • Loading branch information
judith-bourque committed Jun 14, 2023
1 parent ad2a717 commit 405cbe1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 0.1.3
Date: 2023-06-07 15:28:34 UTC
SHA: b9256de5930ff921a053a5084c68d312d6957faf
3 changes: 3 additions & 0 deletions tests/testthat/test-locate.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ test_that("create request works", {
"http://ip-api.com/csv/132.203.167.188?fields=status%2Cmessage%2Ccountry%2Ccity&header=true")

expect_error(get_location(ip = "132.203.167.188", lang = "uk"))

req <- create_req()
expect_equal(environment(req[["policies"]][["throttle_delay"]])[["rate"]], 0.75)
})

0 comments on commit 405cbe1

Please sign in to comment.