Skip to content

Commit

Permalink
skip problematic tests on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rodrigues authored Sep 18, 2024
1 parent 3ee9962 commit fc11d31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-fetchers.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ testthat::test_that("Test fetchgit works", {
})

testthat::test_that("Test fetchgit fails gracefully", {
testthat::skip_on_cran()
testthat::expect_error(
fetchgit(
list(
Expand Down Expand Up @@ -39,6 +40,7 @@ testthat::test_that("Test fetchgit works with gitlab packages", {


testthat::test_that("Test fetchzip works", {
testthat::skip_on_cran()
testthat::expect_equal(
fetchzip("[email protected]"),
"\n (pkgs.rPackages.buildRPackage {\n name = \"AER\";\n src = pkgs.fetchzip {\n url = \"https://cran.r-project.org/src/contrib/Archive/AER/AER_1.2-8.tar.gz\";\n sha256 = \"sha256-OqxXcnUX/2C6wfD5fuNayc8OU+mstI3tt4eBVGQZ2S0=\";\n };\n propagatedBuildInputs = builtins.attrValues {\n inherit (pkgs.rPackages) \n car\n lmtest\n sandwich\n survival\n zoo\n Formula;\n };\n })\n"
Expand Down

0 comments on commit fc11d31

Please sign in to comment.