From 406646103ca6e99c5ac7cb827463ec4e56f127e3 Mon Sep 17 00:00:00 2001 From: Marko Ristin Date: Fri, 12 Apr 2024 15:02:43 +0200 Subject: [PATCH] reformat --- tests/test_examples.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/test_examples.py b/tests/test_examples.py index 247ad30..d968985 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -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: @@ -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", + ), + ], ) ] ) @@ -114,6 +115,7 @@ def test_visitor(): visitor = Visitor() visitor.visit(environment) + def test_jsonization_serialize(): # Prepare the environment environment = aas_types.Environment( @@ -198,3 +200,4 @@ def test_xmlization_serialize(): test_jsonization_deserialize() test_jsonization_serialize() test_xmlization_serialize() + \ No newline at end of file