Skip to content

Commit d9c9149

Browse files
committed
update integration tests
1 parent 50c46bb commit d9c9149

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integrated/test-get.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ cont1_content <- NULL
88

99
test_that("get_users works", {
1010
users <- get_users(test_conn_1)
11+
expect_s3_class(users, c("connect_users", "list"))
1112

13+
users <- as.data.frame(users)
1214
expect_s3_class(users, c("tbl_df", "tbl", "data.frame"))
1315
expect_equal(
1416
purrr::map_chr(vctrs::vec_ptype(users), typeof),
@@ -18,10 +20,10 @@ test_that("get_users works", {
1820
# Other tests create users, so specifying the exact number here is conditional
1921
# on the contents of other tests and the order that tests run in.
2022
admins <- get_users(test_conn_1, user_role = "administrator")
21-
expect_true(nrow(admins) > 0)
23+
expect_true(length(admins) > 0)
2224

2325
licensed <- get_users(test_conn_1, account_status = "licensed")
24-
expect_true(nrow(licensed) > 0)
26+
expect_true(length(licensed) > 0)
2527
})
2628

2729
test_that("get_groups works", {

0 commit comments

Comments
 (0)