Skip to content

Commit d20ac03

Browse files
committed
Uncomment tests for chembl_atc_classes()
1 parent 9a5b147 commit d20ac03

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

tests/testthat/test-chembl.R

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -210,23 +210,23 @@ test_that("More chembl_query()", {
210210
expect_equal(o10m[2], "Service not available. Returning NA.")
211211
})
212212

213-
# test_that("chembl_atc_classes()", {
214-
# o1 <- chembl_atc_classes()
215-
# o2 <- capture_messages(chembl_atc_classes(verbose = TRUE))
213+
test_that("chembl_atc_classes()", {
214+
o1 <- chembl_atc_classes()
215+
o2 <- capture_messages(chembl_atc_classes(verbose = TRUE))
216216

217-
# expect_s3_class(o1, c("tbl_df", "tbl", "data.frame"))
218-
# expect_equal(o2[1], "Querying Page 1. ")
219-
# expect_equal(o2[2], "OK (HTTP 200).")
217+
expect_s3_class(o1, c("tbl_df", "tbl", "data.frame"))
218+
expect_equal(o2[1], "Querying Page 1. ")
219+
expect_equal(o2[2], "OK (HTTP 200).")
220220

221-
# #service down
221+
#service down
222222

223-
# o3 <- chembl_atc_classes(test_service_down = TRUE)
224-
# o3m <- capture_messages(
225-
# chembl_atc_classes(test_service_down = TRUE, verbose = TRUE))
223+
o3 <- chembl_atc_classes(test_service_down = TRUE)
224+
o3m <- capture_messages(
225+
chembl_atc_classes(test_service_down = TRUE, verbose = TRUE))
226226

227-
# expect_equal(o3, NA)
228-
# expect_equal(o3m[2], "Service not available. Returning NA.")
229-
# })
227+
expect_equal(o3, NA)
228+
expect_equal(o3m[2], "Service not available. Returning NA.")
229+
})
230230

231231
test_that("validate_chembl_version()", {
232232
expect_equal(validate_chembl_version()$version, "35")

0 commit comments

Comments
 (0)