Skip to content

Commit

Permalink
disable live S3 queries in unit tests for public objects (404)
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Jan 23, 2025
1 parent 0f12772 commit e2aabcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inst/tests/testthat/test-load.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(testthat)

context('s3')

test_that('load data from s3', {
expect_true(s3_exists('s3://botor/example-data/mtcars.csv'))
expect_error(s3_read('s3://botor/example-data/mtcars.csv', read.csv), NA)
})
## test_that('load data from s3', {
## expect_true(s3_exists('s3://botor/example-data/mtcars.csv'))

Check warning on line 7 in inst/tests/testthat/test-load.R

View workflow job for this annotation

GitHub Actions / lint

file=inst/tests/testthat/test-load.R,line=7,col=8,[commented_code_linter] Commented code should be removed.
## expect_error(s3_read('s3://botor/example-data/mtcars.csv', read.csv), NA)

Check warning on line 8 in inst/tests/testthat/test-load.R

View workflow job for this annotation

GitHub Actions / lint

file=inst/tests/testthat/test-load.R,line=8,col=8,[commented_code_linter] Commented code should be removed.
## })

0 comments on commit e2aabcb

Please sign in to comment.