diff --git a/tests/testthat/test_api_docs.R b/tests/testthat/test_api_docs.R index 47d8e80..61ed7f0 100644 --- a/tests/testthat/test_api_docs.R +++ b/tests/testthat/test_api_docs.R @@ -1,5 +1,5 @@ library(fredr) -context("api_docs functions properly") +context("api_docs") test_that("api_docs throws errors on invalid endpoints", { expect_error(api_docs(endpoint = "foo", debug = TRUE)) diff --git a/tests/testthat/test_errors.R b/tests/testthat/test_errors.R index 1974fda..fcf9198 100644 --- a/tests/testthat/test_errors.R +++ b/tests/testthat/test_errors.R @@ -1,5 +1,5 @@ library(fredr) -context("fredr-based functions throw errors.") +context("fredr-based functions") test_that("fredr throws errors for bad requests", { expect_error(fredr()) diff --git a/tests/testthat/test_get_freq.R b/tests/testthat/test_get_freq.R index 8699eb2..a757aab 100644 --- a/tests/testthat/test_get_freq.R +++ b/tests/testthat/test_get_freq.R @@ -1,5 +1,5 @@ library(fredr) -context("Check get_freq") +context("get_freq") test_that("get_freq functions properly", { expect_error(get_freq()) diff --git a/tests/testthat/test_set_api_key.R b/tests/testthat/test_set_api_key.R index 20da39b..21d0db5 100644 --- a/tests/testthat/test_set_api_key.R +++ b/tests/testthat/test_set_api_key.R @@ -1,5 +1,5 @@ library(fredr) -context("set_api_key is either set of throws an error") +context("set_api_key") test_that("set_api_key throws an error if .Renviron is present.", { # Backup diff --git a/tests/testthat/test_types.R b/tests/testthat/test_types.R index de57c5e..0c93410 100644 --- a/tests/testthat/test_types.R +++ b/tests/testthat/test_types.R @@ -1,5 +1,5 @@ library(fredr) -context("Check returns for appropriate object types") +context("Correct objects returned") a <- fredr(endpoint = "series/observations", series_id = "GNPCA")