Skip to content

Commit

Permalink
🔵 simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrecamilleri committed Sep 24, 2024
1 parent 3a77070 commit f445e40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
10 changes: 0 additions & 10 deletions data/issue-1688/schema_with_path.json

This file was deleted.

15 changes: 7 additions & 8 deletions frictionless/resource/__spec__/test_datatype.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,14 @@ def test_resource_from_descriptor_with_class_datatype():
assert isinstance(resource, resources.TableResource)


@pytest.mark.parametrize(
"source",
[
"data/issue-1688/schema_with_path.json",
],
)
def test_schema_resource_with_path_property(source):
schema = Schema(source)
resource = Resource(schema.to_descriptor(), datatype="schema")
# Non regression test for issue #1688
schema_descriptor = {
"name": "schema",
"path": "abc",
"fields": [],
}
resource = Resource(schema_descriptor, datatype="schema")
assert resource.type == "json"
assert resource.datatype == "schema"
assert isinstance(resource, SchemaResource)

0 comments on commit f445e40

Please sign in to comment.