Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdesmet committed Dec 26, 2023
1 parent 04bc3f9 commit 3e03ced
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-read_resource.R
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,14 @@ test_that("read_resource() can read safe local and remote Table Schema,
"/tests/testthat/data/deployments_schema.json"
expect_error(
read_resource(p_unsafe, "deployments"),
class = "frictionless_error_unsafe_absolute_path"
class = "frictionless_error_path_unsafe_absolute"
)

# Schema is relative parent path
p_unsafe$resources[[1]]$schema <- "../testthat/data/deployments_schema.json"
expect_error(
read_resource(p_unsafe, "deployments"),
class = "frictionless_error_unsafe_relative_path"
class = "frictionless_error_path_unsafe_relative"
)

# Schema is local path
Expand Down Expand Up @@ -340,14 +340,14 @@ test_that("read_resource() can read safe local and remote CSV dialect", {
p_unsafe$resources[[1]]$dialect <- "/tests/testthat/data/dialect.json"
expect_error(
read_resource(p_unsafe, "deployments"),
class = "frictionless_error_unsafe_absolute_path"
class = "frictionless_error_path_unsafe_absolute"
)

# Dialect is relative parent path
p_unsafe$resources[[1]]$dialect <- "../testthat/data/dialect.json"
expect_error(
read_resource(p_unsafe, "deployments"),
class = "frictionless_error_unsafe_relative_path"
class = "frictionless_error_path_unsafe_relative"
)

# Dialect is local path
Expand Down

0 comments on commit 3e03ced

Please sign in to comment.