Skip to content

Commit

Permalink
Update snapshots of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Nov 20, 2024
1 parent 54d4f08 commit 764b25f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
Binary file modified data/cran_to_spdx.rda
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/testthat/_snaps/cff_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,13 @@
- family-names: Boettiger
given-names: Carl
email: [email protected]
orcid: https://orcid.org/0000-0002-1642-628X
url: https://httpbin.org/status/404
contact:
- family-names: Boettiger
given-names: Carl
email: [email protected]
orcid: https://orcid.org/0000-0002-1642-628X
keywords:
- metadata
- codemeta
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/_snaps/utils-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,7 @@
- family-names: Boettiger
given-names: Carl
email: [email protected]
orcid: https://orcid.org/0000-0002-1642-628X
abstract: Codemeta defines a 'JSON-LD' format for describing software metadata. This
package provides utilities to generate, parse, and modify codemeta.jsonld files
automatically for R packages.
Expand All @@ -1042,6 +1043,7 @@
- family-names: Boettiger
given-names: Carl
email: [email protected]
orcid: https://orcid.org/0000-0002-1642-628X
keywords:
- metadata
- codemeta
Expand Down
5 changes: 3 additions & 2 deletions tests/testthat/test-cff_create.R
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,11 @@ test_that("Parsing many persons", {


test_that("Parsing wrong urls", {
rvers <- getRversion()
skip_if(rvers <= "4.4.1", "Snapshot created with R 4.5.0")
skip_on_cran()

rvers <- getRversion()
skip_if(rvers < "4.4.1", "Snapshot created with R 4.4.*")

desc_path <- system.file("examples/DESCRIPTION_wrong_urls", package = "cffr")

a_cff <- cff_create(desc_path,
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/test-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ test_that("Convert list of authors", {


test_that("as.person method", {

path <- system.file("examples/CITATION_complete.cff", package = "cffr")

the_cff <- cff_read(path)
Expand Down Expand Up @@ -228,8 +229,6 @@ test_that("head and tail", {
})

test_that("toBibtex", {
rvers <- getRversion()
skip_if(rvers <= "4.4.1", "Snapshot created with R 4.5.0")
skip_on_os("mac")
skip_on_os("linux")
skip_on_os("solaris")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-utils-create.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_that("Merge all DESCRIPTION files with CITATION_basic", {
rvers <- getRversion()
skip_if(rvers <= "4.4.1", "Snapshot created with R 4.5.0")
skip_if(rvers < "4.4.1", "Snapshot created with R 4.4.*")
skip_on_cran()

allfiles <- list.files(
Expand Down

0 comments on commit 764b25f

Please sign in to comment.