Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inst/templates/test-paths.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/{{tag}}/{{fn_prefix}}{{operation_id}}", {
httptest2::with_mock_dir("api/path/{{tag}}/{{fn_prefix}}{{operation_id}}", {
test_that("{{fn_prefix}}{{operation_id}}() returns expected result", {
beekeeper::skip_if_not_exported("{{fn_prefix}}{{operation_id}}")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/audit/get_audit_case", {
httptest2::with_mock_dir("api/path/audit/get_audit_case", {
test_that("get_audit_case() returns expected result", {
beekeeper::skip_if_not_exported("get_audit_case")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/audit/get_audit_category", {
httptest2::with_mock_dir("api/path/audit/get_audit_category", {
test_that("get_audit_category() returns expected result", {
beekeeper::skip_if_not_exported("get_audit_category")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/audit/get_audit_primary_category", {
httptest2::with_mock_dir("api/path/audit/get_audit_primary_category", {
test_that("get_audit_primary_category() returns expected result", {
beekeeper::skip_if_not_exported("get_audit_primary_category")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/audit/get_names_audit_candidates", {
httptest2::with_mock_dir("api/path/audit/get_names_audit_candidates", {
test_that("get_names_audit_candidates() returns expected result", {
beekeeper::skip_if_not_exported("get_names_audit_candidates")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/audit/get_names_audit_committees", {
httptest2::with_mock_dir("api/path/audit/get_names_audit_committees", {
test_that("get_names_audit_committees() returns expected result", {
beekeeper::skip_if_not_exported("get_names_audit_committees")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/debts/get_schedules_schedule_d", {
httptest2::with_mock_dir("api/path/debts/get_schedules_schedule_d", {
test_that("get_schedules_schedule_d() returns expected result", {
beekeeper::skip_if_not_exported("get_schedules_schedule_d")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/debts/get_schedules_schedule_d_sub_id", {
httptest2::with_mock_dir("api/path/debts/get_schedules_schedule_d_sub_id", {
test_that("get_schedules_schedule_d_sub_id() returns expected result", {
beekeeper::skip_if_not_exported("get_schedules_schedule_d_sub_id")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/legal/get_legal_search", {
httptest2::with_mock_dir("api/path/legal/get_legal_search", {
test_that("get_legal_search() returns expected result", {
beekeeper::skip_if_not_exported("get_legal_search")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/apis/get_api", {
httptest2::with_mock_dir("api/path/apis/get_api", {
test_that("get_api() returns expected result", {
beekeeper::skip_if_not_exported("get_api")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/apis/get_metrics", {
httptest2::with_mock_dir("api/path/apis/get_metrics", {
test_that("get_metrics() returns expected result", {
beekeeper::skip_if_not_exported("get_metrics")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/apis/get_provider", {
httptest2::with_mock_dir("api/path/apis/get_provider", {
test_that("get_provider() returns expected result", {
beekeeper::skip_if_not_exported("get_provider")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/apis/get_providers", {
httptest2::with_mock_dir("api/path/apis/get_providers", {
test_that("get_providers() returns expected result", {
beekeeper::skip_if_not_exported("get_providers")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/apis/get_service_api", {
httptest2::with_mock_dir("api/path/apis/get_service_api", {
test_that("get_service_api() returns expected result", {
beekeeper::skip_if_not_exported("get_service_api")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/apis/get_services", {
httptest2::with_mock_dir("api/path/apis/get_services", {
test_that("get_services() returns expected result", {
beekeeper::skip_if_not_exported("get_services")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/apis/list_apis", {
httptest2::with_mock_dir("api/path/apis/list_apis", {
test_that("list_apis() returns expected result", {
beekeeper::skip_if_not_exported("list_apis")
expect_snapshot({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/board/add_boards", {
httptest2::with_mock_dir("api/path/board/add_boards", {
test_that("add_boards() returns expected result", {
beekeeper::skip_if_not_exported("add_boards")
expect_snapshot({
Expand Down
2 changes: 1 addition & 1 deletion vignettes/beekeeper.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ For example, this is the generated `tests/testthat/test-paths-audit-get_audit_ca
# arguments for the tests to succeed. We recommend expanding these tests to
# check for specific expectations, rather than simply using a snapshot.

with_mock_dir("api/path/audit/fec_get_audit_case", {
httptest2::with_mock_dir("api/path/audit/fec_get_audit_case", {
test_that("fec_get_audit_case() returns expected result", {
expect_snapshot({
test_result <- fec_get_audit_case(
Expand Down
Loading