Skip to content

Commit

Permalink
optimize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jul 17, 2018
1 parent 14ee515 commit 6ea4d80
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/testthat/test_GNManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@ test_that("UPDATE metadata",{
id <- "my-metadata-identifier"
md <- GN$getMetadataByUUID(id)
md$setDataSetURI("new-dataset-uri")

metaId <- GN$get(md$fileIdentifier, by = "uuid", output = "id")
updated <- GN$updateMetadata(id = metaId, xml = md$encode())
expect_equal(updated, metaId)
})

test_that("DELETE metadata",{
id <- "my-metadata-identifier"
md <- GN$getMetadataByUUID(id)
metaId <- GN$get(md$fileIdentifier, by = "uuid", output = "id")
metaId <- GN$get(id, by = "uuid", output = "id")
deleted <- GN$deleteMetadata(id = metaId)
expect_equal(deleted, metaId)
})

0 comments on commit 6ea4d80

Please sign in to comment.