Skip to content

Commit

Permalink
lestarch: sp
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed May 11, 2022
1 parent 97eca6b commit 822149a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/fprime/common/models/serialize/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def test_serializable_basic():
]
valid_values = [
({"member1": 123, "member2": 456, "member3": -234}, 4 + 4 + 8),
({"member4": "345", "member5": "abcd", "member6": 213}, 5 + 6 + 8),
({"member4": "345", "member5": "abc1", "member6": 213}, 5 + 6 + 8),
]

for index, (members, (valid, size)) in enumerate(zip(member_list, valid_values)):
Expand Down Expand Up @@ -339,7 +339,7 @@ def test_serializable_advanced():
array_member_class = ArrayType.construct_type(
"ArrayMember", string_member_class, 3, "%s"
)
subserializable_class = SerializableType.construct_type(
sub_serializable_class = SerializableType.construct_type(
"AdvancedSubSerializable",
[("subfield1", U32Type), ("subfield2", array_member_class)],
)
Expand All @@ -349,7 +349,7 @@ def test_serializable_advanced():
("field2", U32Type),
("field3", enum_member_class),
("field4", array_member_class),
("field5", subserializable_class),
("field5", sub_serializable_class),
]
serializable_class = SerializableType.construct_type(
"AdvancedSerializable", field_data
Expand Down Expand Up @@ -480,7 +480,7 @@ def test_base_type():

def test_dictionary_type_errors():
"""Ensure the dictionary type is preventing errors"""
# Check no raw calls passing in DictionayType
# Check no raw calls passing in DictionaryType
with pytest.raises(AssertionError):
DictionaryType.construct_type(
DictionaryType, "MyNewString", PROPERTY="one", PROPERTY2="two"
Expand Down

0 comments on commit 822149a

Please sign in to comment.