-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6186daa
commit b8d992d
Showing
8 changed files
with
32 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
from onedm import sdf | ||
|
||
|
||
def test_integer_property(test_model: sdf.SDF): | ||
def test_integer_property(test_model: sdf.Document): | ||
assert isinstance(test_model.properties["IntegerProperty"], sdf.IntegerProperty) | ||
assert test_model.properties["IntegerProperty"].label == "Example integer" | ||
|
||
|
||
def test_number_property(test_model: sdf.SDF): | ||
def test_number_property(test_model: sdf.Document): | ||
assert isinstance(test_model.properties["NumberProperty"], sdf.NumberProperty) | ||
assert test_model.properties["NumberProperty"].label == "Example number" | ||
|
||
|
||
def test_boolean_property(test_model: sdf.SDF): | ||
def test_boolean_property(test_model: sdf.Document): | ||
assert isinstance(test_model.properties["BooleanProperty"], sdf.BooleanProperty) | ||
assert test_model.properties["BooleanProperty"].label == "Example boolean" | ||
|
||
|
||
def test_string_property(test_model: sdf.SDF): | ||
def test_string_property(test_model: sdf.Document): | ||
assert isinstance(test_model.properties["StringProperty"], sdf.StringProperty) | ||
assert test_model.properties["StringProperty"].label == "Example string" | ||
|
||
|
||
def test_array_property(test_model: sdf.SDF): | ||
def test_array_property(test_model: sdf.Document): | ||
assert isinstance(test_model.properties["ArrayProperty"], sdf.ArrayProperty) | ||
assert test_model.properties["ArrayProperty"].label == "Example array" | ||
|
||
|
||
def test_object_property(test_model: sdf.SDF): | ||
def test_object_property(test_model: sdf.Document): | ||
assert isinstance(test_model.properties["ObjectProperty"], sdf.ObjectProperty) | ||
assert test_model.properties["ObjectProperty"].label == "Example object" | ||
|
||
|
||
def test_unknown_property(test_model: sdf.SDF): | ||
def test_unknown_property(test_model: sdf.Document): | ||
assert isinstance(test_model.properties["UnknownProperty"], sdf.AnyProperty) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from onedm import sdf | ||
|
||
|
||
def test_reference(test_model: sdf.SDF): | ||
def test_reference(test_model: sdf.Document): | ||
assert isinstance(test_model.data["Reference"], sdf.IntegerData) | ||
assert test_model.data["Reference"].const == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters