From cdbd2dbb1fa371c9f55acc3ea4ede4e898111ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20M=C3=B6ller?= Date: Sat, 16 Dec 2023 01:37:56 +0100 Subject: [PATCH] examples.tutorial_storage: fix assertion Previously this simply duplicated the previous assertion used to check the result of `obj_store.get_identifiable()`. Fix #186 --- basyx/aas/examples/tutorial_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basyx/aas/examples/tutorial_storage.py b/basyx/aas/examples/tutorial_storage.py index 8c8724190..0d76e9a5f 100755 --- a/basyx/aas/examples/tutorial_storage.py +++ b/basyx/aas/examples/tutorial_storage.py @@ -99,7 +99,7 @@ for reference in aas.submodel] # The first (and only) element of this list should be our example submodel: -assert submodel is tmp_submodel +assert submodel is submodels[0] # Now, let's manually create a reference to the Property within the submodel. The reference uses two keys, the first one # identifying the submodel by its identification, the second one resolving to the Property within the submodel by its