Skip to content

Commit a5a3c81

Browse files
committed
add bcdc_list_organization*() tests
1 parent 939080f commit a5a3c81

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/testthat/test-get_record.R

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,22 @@ test_that("bcdc_list_groups", {
5555
expect_s3_class(bcdc_list_groups(), "data.frame")
5656
})
5757

58+
test_that("bcdc_list_organization_records works", {
59+
skip_on_cran()
60+
skip_if_net_down()
61+
62+
expect_s3_class(bcdc_list_organization_records('bc-stats'), "bcdc_organization")
63+
expect_s3_class(bcdc_list_organization_records('bc-stats'), "tbl_df")
64+
65+
})
66+
67+
test_that("bcdc_list_organizations", {
68+
skip_on_cran()
69+
skip_if_net_down()
70+
71+
expect_s3_class(bcdc_list_organizations(), "data.frame")
72+
})
73+
5874
test_that("bcdc_list works", {
5975
skip_on_cran()
6076
skip_if_net_down()

0 commit comments

Comments
 (0)