File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ cont1_content <- NULL
88
99test_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
2729test_that(" get_groups works" , {
You can’t perform that action at this time.
0 commit comments