Skip to content

Commit

Permalink
Simplify pkgdepends test fixture path
Browse files Browse the repository at this point in the history
We are only running these in check() now, anyway.
  • Loading branch information
gaborcsardi committed Feb 16, 2019
1 parent 968a238 commit ae52f2f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/pkgdepends/helper-fixtures.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,7 @@ fixtures <- list(
)

fixture_dir <- function() {
## If run from R CMD check, it might give an error,
## so fall back to the current directory being tests/testthat
tryCatch(
file.path(
rprojroot::find_package_root_file(),
"tests", "pkgdepends", "fixtures"
),
error = function(e) "fixtures"
)
"fixtures"
}

get_fixture <- function(file) {
Expand Down

0 comments on commit ae52f2f

Please sign in to comment.