Skip to content

Commit

Permalink
Merge pull request #291 from MansMeg/MansMeg-patch-7
Browse files Browse the repository at this point in the history
Update test-polls_data.R
  • Loading branch information
MansMeg authored May 2, 2024
2 parents 6438bb1 + e02de56 commit 173271f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RPackage/tests/testthat/test-polls_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ test_that(desc="check modified date",{
SwedishPolls:::find_file_by_traversing(file_to_find = "dcat-ap.rdf")
dcat_ap_rdf_modified_date <- suppressWarnings(SwedishPolls:::get_dcat_ap_rdf_modified_date())
if(is.null(dcat_ap_rdf_modified_date)) skip()
expect_true(abs(as.integer(Sys.Date()-dcat_ap_rdf_modified_date)) < 14,
expect_true(abs(as.integer(Sys.Date()-dcat_ap_rdf_modified_date)) < 365,
label = "'dcterms:modified' element in '/dcat-ap.rdf' file is not updated, i.e. the statement 'modified date is within the last two weeks'")
})

0 comments on commit 173271f

Please sign in to comment.