Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
fix tests @id
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Apr 18, 2024
1 parent f2f0339 commit 76acc9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions tests/end2end/test_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_dataset_creation(model_all):
"@type": [
"Root",
],
"id": "id",
"@id": "id",
"str_value": "string",
"float_value": 1.5,
"int_value": 1,
Expand All @@ -36,7 +36,7 @@ def test_dataset_creation(model_all):
"@type": [
"Nested",
],
"id": "id",
"@id": "id",
"str_value": "string",
"float_value": 1.5,
"int_value": 1,
Expand All @@ -49,7 +49,7 @@ def test_dataset_creation(model_all):
"@type": [
"Nested",
],
"id": "id",
"@id": "id",
"str_value": "string",
"float_value": 1.5,
"int_value": 1,
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/static/model_all_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Root": "file://tests/fixtures/static/model_all.md/Root"
},
"@type": ["Root"],
"id": "id",
"@id": "id",
"str_value": "string",
"float_value": 1.5,
"int_value": 1,
Expand All @@ -22,7 +22,7 @@
"Nested": "file://tests/fixtures/static/model_all.md/Nested"
},
"@type": ["Nested"],
"id": "id",
"@id": "id",
"str_value": "string",
"float_value": 1.5,
"int_value": 1
Expand All @@ -33,7 +33,7 @@
"Nested": "file://tests/fixtures/static/model_all.md/Nested"
},
"@type": ["Nested"],
"id": "id",
"@id": "id",
"str_value": "string",
"float_value": 1.5,
"int_value": 1
Expand All @@ -44,7 +44,7 @@
"LeafElement": "file://tests/fixtures/static/model_all.md/LeafElement"
},
"@type": ["LeafElement"],
"id": "id",
"@id": "id",
"leaf_value": "I am a leaf",
"some_attribute": "I am an attribute"
}
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/static/model_all_expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Root: file://tests/fixtures/static/model_all.md/Root
"@type":
- Root
id: id
"@id": id
str_value: string
float_value: 1.5
int_value: 1
Expand All @@ -24,7 +24,7 @@ nested_single_obj:
Nested: file://tests/fixtures/static/model_all.md/Nested
"@type":
- Nested
id: id
"@id": id
str_value: string
float_value: 1.5
int_value: 1
Expand All @@ -33,7 +33,7 @@ nested_multiple_obj:
Nested: file://tests/fixtures/static/model_all.md/Nested
"@type":
- Nested
id: id
"@id": id
str_value: string
float_value: 1.5
int_value: 1
Expand All @@ -42,6 +42,6 @@ leaf_element:
LeafElement: file://tests/fixtures/static/model_all.md/LeafElement
"@type":
- LeafElement
id: id
"@id": id
leaf_value: I am a leaf
some_attribute: I am an attribute

0 comments on commit 76acc9d

Please sign in to comment.