-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref #44
- Loading branch information
Showing
6 changed files
with
67 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
id: 1 | ||
alias: demo | ||
name: Demo Dataverse | ||
dataverseContacts: | ||
displayOrder: 0 | ||
contactEmail: [email protected] | ||
permissionRoot: yes | ||
description: "<span><span><span><h3>This Dataverse is for demo purposes only.</h3></span></span></span>\r\n\r\nTo | ||
archive and publish to the Harvard repository, visit <a href=\"https://dataverse.harvard.edu\" | ||
title=\"Harvard Dataverse\" target=\"_blank\">dataverse.harvard.edu</a>. To learn | ||
about and publish to other repositories, visit The Dataverse Project at <a href=\"https://dataverse.org\" | ||
title=\"The Dataverse Project\" target=\"_blank\">dataverse.org</a>." | ||
dataverseType: UNCATEGORIZED | ||
creationDate: '2015-04-16T17:46:00Z' | ||
theme: | ||
id: 1 | ||
logo: HarvardShield_RGB.png | ||
tagline: This Dataverse is for demo purposes only. To deposit actual datasets please | ||
visit dataverse.harvard.edu. | ||
linkColor: '000000' | ||
textColor: a51c30 | ||
backgroundColor: F5F5F5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
id: 396355 | ||
alias: dataverse-client-r | ||
name: dataverse-client-r | ||
affiliation: IQSS | ||
dataverseContacts: | ||
displayOrder: 0 | ||
contactEmail: [email protected] | ||
permissionRoot: yes | ||
description: Dataverse for testing [dataverse-client-r](https://github.com/IQSS/dataverse-client-r) | ||
dataverseType: RESEARCHERS | ||
ownerId: 1 | ||
creationDate: '2020-01-02T04:18:06Z' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
# See https://demo.dataverse.org/dataverse/dataverse-client-r | ||
|
||
test_that("dataverse root", { | ||
expected <- retrieve_info_dataverse("expected-dataverse-root.yml") | ||
actual <- get_dataverse( | ||
dataverse = ":root" | ||
) | ||
expect_equal(actual$id, 1L) | ||
expect_equal(actual$alias, "demo") | ||
expect_equal(actual$name, "Demo Dataverse") | ||
expect_s3_class(actual$dataverseContacts, "data.frame") | ||
expect_match(actual$description, "^.+This Dataverse is for demo purposes only\\..+$") | ||
expect_equal(actual$creationDate, "2015-04-16T17:46:00Z") # Notice this is a string | ||
expect_equal(actual$id , expected$id) | ||
expect_equal(actual$alias , expected$alias) | ||
expect_equal(actual$name , expected$name) | ||
expect_equal(actual$description , expected$description) | ||
expect_equal(actual$creationDate , expected$creationDate) # Notice this is a string | ||
expect_s3_class(actual$dataverseContacts , "data.frame") | ||
}) | ||
|
||
test_that("dataverse for 'dataverse-client-r'", { | ||
expected <- retrieve_info_dataverse("expected-dataverse.yml") | ||
actual <- get_dataverse( | ||
dataverse = "dataverse-client-r" | ||
) | ||
expect_equal(actual$id, 396355) | ||
expect_equal(actual$alias, "dataverse-client-r") | ||
expect_equal(actual$name, "dataverse-client-r") | ||
expect_equal(actual$affiliation, "IQSS") | ||
expect_s3_class(actual$dataverseContacts, "data.frame") | ||
expect_match(actual$description, "^Dataverse for testing.+$") | ||
expect_equal(actual$creationDate, "2020-01-02T04:18:06Z") # Notice this is a string | ||
|
||
expect_equal(actual$id , expected$id) | ||
expect_equal(actual$alias , expected$alias) | ||
expect_equal(actual$name , expected$name) | ||
expect_equal(actual$description , expected$description) | ||
expect_equal(actual$creationDate , expected$creationDate) # Notice this is a string | ||
expect_s3_class(actual$dataverseContacts , "data.frame") | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters