mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 08:32:04 +02:00
(v1.4.0.9062) unit test fix
This commit is contained in:
@ -108,9 +108,6 @@ test_that("imports work", {
|
||||
for (i in seq_len(length(import_functions))) {
|
||||
fn <- names(import_functions)[i]
|
||||
pkg <- unname(import_functions[i])
|
||||
# package should be in DESCRIPTION
|
||||
expect(pkg %in% gsub("[^A-Za-z]", "", readLines(file("DESCRIPTION"))),
|
||||
failure_message = paste0("Package ", pkg, " is not in Suggests field"))
|
||||
# function should exist in foreign pkg namespace
|
||||
expect(!is.null(import_fn(name = fn, pkg = pkg, error_on_fail = FALSE)),
|
||||
failure_message = paste0("Function ", pkg, "::", fn, "() does not exist anymore"))
|
||||
|
Reference in New Issue
Block a user