Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
MansMeg committed Jan 28, 2024
1 parent efee629 commit d7e4424
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat/test-pxweb_interactive.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,13 @@ test_that(desc = "No value bug", {
expect_silent(pxe <- pxweb:::pxweb_explorer.character(url))
expect_output(pxweb:::print.pxweb_explorer(pxe), regexp = "\\[\\[HS-Number\\]\\]")
})


test_that(desc = "Fail on incorrect", {
# CRAN seem to run tests in parallel, hence API tests cannot be run on CRAN.
skip_on_cran()
skip_if_offline()

expect_error(pxweb_interactive("incorrect url"))
})

0 comments on commit d7e4424

Please sign in to comment.