Skip to content

Commit

Permalink
👽️ Adjust types in API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lazappi committed Jan 15, 2025
1 parent 9261a59 commit 299d8bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-instance_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ test_that("get_record works", {
# try to get a record
artifact <- api$get_record("core", "artifact", "mePviem4DGM4SFzvLXf3")

expect_true(all(c("uid", "size", "hash", "description", "type") %in% names(artifact)))
expect_true(all(c("uid", "size", "hash", "description") %in% names(artifact)))
})

test_that("test get_record fails gracefully with incorrect host", {
Expand All @@ -78,7 +78,7 @@ test_that("get_record with select works", {
# try to get a record
artifact <- api$get_record("core", "artifact", "mePviem4DGM4SFzvLXf3", select = "storage")

expect_true(all(c("uid", "size", "hash", "description", "type") %in% names(artifact)))
expect_true(all(c("uid", "size", "hash", "description") %in% names(artifact)))

expect_true(all(c("uid", "type", "region", "root") %in% names(artifact$storage)))
})
Expand Down

0 comments on commit 299d8bd

Please sign in to comment.