Skip to content

Commit 93cd47c

Browse files
committed
add new API field
1 parent a70e462 commit 93cd47c

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

R/ptype.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ connectapi_ptypes <- list(
1515
"active_time" = NA_datetime_,
1616
"confirmed" = NA,
1717
"locked" = NA,
18+
"external_id" = NA_character_,
1819
"guid" = NA_character_
1920
),
2021
groups = tibble::tibble(

tests/integrated/test-get.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ test_that("get_users works", {
1010
users <- get_users(client)
1111

1212
expect_s3_class(users, c("tbl_df", "tbl", "data.frame"))
13-
expect_equal(
14-
purrr::map_chr(vctrs::vec_ptype(users), typeof),
15-
purrr::map_chr(vctrs::vec_ptype(connectapi_ptypes$users), typeof)
16-
)
13+
expect_ptype_equal(users, connectapi_ptypes$users, exact = FALSE)
1714

1815
# Other tests create users, so specifying the exact number here is conditional
1916
# on the contents of other tests and the order that tests run in.

tests/integrated/test-lazy.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ test_that("users works", {
3535
expect_type(colnames(users), "character")
3636
expect_gt(length(colnames(users)), 1)
3737

38-
expect_equal(
39-
purrr::map_chr(vctrs::vec_ptype(users_local), typeof),
40-
purrr::map_chr(vctrs::vec_ptype(connectapi_ptypes$users), typeof)
41-
)
38+
expect_ptype_equal(users_local, connectapi_ptypes$users, exact = FALSE)
4239
})
4340

4441
test_that("usage_static works", {

0 commit comments

Comments
 (0)