Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
mristin committed Apr 12, 2024
1 parent 669ee93 commit 4066461
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def test_descend_and_descend_once():
):
print(something.id_short)


class Visitor(aas_types.PassThroughVisitor):
def visit_property(self, that: aas_types.Property):
if "another" in that.id_short:
Expand All @@ -93,19 +94,19 @@ def test_visitor():
aas_types.Property(
id_short="some_property",
value_type=aas_types.DataTypeDefXSD.INT,
value="1984"
value="1984",
),
aas_types.Property(
id_short="another_property",
value_type=aas_types.DataTypeDefXSD.INT,
value="1985"
value="1985",
),
aas_types.Property(
id_short="yet_another_property",
value_type=aas_types.DataTypeDefXSD.INT,
value="1986"
)
]
value="1986",
),
],
)
]
)
Expand All @@ -114,6 +115,7 @@ def test_visitor():
visitor = Visitor()
visitor.visit(environment)


def test_jsonization_serialize():
# Prepare the environment
environment = aas_types.Environment(
Expand Down Expand Up @@ -198,3 +200,4 @@ def test_xmlization_serialize():
test_jsonization_deserialize()
test_jsonization_serialize()
test_xmlization_serialize()

0 comments on commit 4066461

Please sign in to comment.