Skip to content

Commit a35ca03

Browse files
committed
Add new test dependency
1 parent 26f49ca commit a35ca03

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

DESCRIPTION

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: jentre
22
Title: Toolkit for the 'Entrez' API
33
Version: 0.0.0.9000
4-
Authors@R:
4+
Authors@R:
55
c(person(given = "Carl",
66
family = "Suster",
77
email = "Carl.Suster@health.nsw.gov.au",
@@ -15,7 +15,7 @@ License: MIT + file LICENSE
1515
Encoding: UTF-8
1616
Roxygen: list(markdown = TRUE)
1717
RoxygenNote: 7.3.2
18-
Collate:
18+
Collate:
1919
'count.R'
2020
'process.R'
2121
'fetch.R'
@@ -30,15 +30,16 @@ Collate:
3030
'utils.R'
3131
Depends:
3232
R (>= 4.1.0)
33-
Imports:
33+
Imports:
3434
cli,
3535
glue,
3636
httr2,
3737
purrr,
3838
rlang (>= 1.1.0),
3939
vctrs,
4040
xml2
41-
Suggests:
41+
Suggests:
42+
httpuv,
4243
testthat (>= 3.0.0),
4344
tibble,
4445
withr

tests/testthat/test-request.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ test_that("request has recommended headers and params by default", {
99
})
1010

1111
test_that("simple empty body works", {
12+
skip_if_not_installed("httpuv")
1213
req <- entrez_request("efetch.fcgi", tool = NULL, .method = "POST")
1314
expect_no_error(httr2::req_dry_run(req))
1415
})

0 commit comments

Comments
 (0)