Skip to content

Commit

Permalink
test update_push_log argument. Closes #25.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhpob committed Jun 15, 2024
1 parent 6fe402d commit 10499b8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/testthat/test-make_receiver_push_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,18 @@ test_that("errors with no input data", {
"Must provide at least one each of qualified.*unqualified detections.*deployment"
)
})




test_that("update_push_log arg works", {
make_receiver_push_summary(
qualified = pbsm$qualified,
unqualified = pbsm$unqualified,
deployment = pbsm$deployment,
update_push_log = TRUE
) |>
expect_message("Asking OTN GeoServer for project information") |>
expect_message("Writing report") |>
expect_message("Done")
})
13 changes: 13 additions & 0 deletions tests/testthat/test-make_tag_push_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,16 @@ test_that("errors with no input data", {
"Must provide at least one set of OTN-matched detections"
)
})




test_that("update_push_log arg works", {
make_tag_push_summary(
matched = pbsm$matched,
update_push_log = TRUE
) |>
expect_message("Asking OTN GeoServer") |>
expect_message("Writing report") |>
expect_message("Done")
})

0 comments on commit 10499b8

Please sign in to comment.