Skip to content

Commit e8a4d1f

Browse files
committed
test.backend: Remove outdated tests, fix codestyle
1 parent 791e754 commit e8a4d1f

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
lines changed

sdk/basyx/aas/examples/tutorial_backend_couchdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@
8282

8383
# Let's delete the Submodels from the CouchDB to leave it in a clean state
8484
object_store.discard(example_submodel1)
85-
object_store.discard(example_submodel2)
85+
object_store.discard(example_submodel2)

sdk/basyx/aas/model/provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class AbstractObjectStore(AbstractObjectProvider, MutableSet[_IT], Generic[_IT],
6767
:class:`~basyx.aas.model.base.Identifier` – allow to add and delete objects (i.e. behave like a Python set).
6868
This includes local object stores (like :class:`~.DictObjectStore`) and specific object stores
6969
(like :class:`~basyx.aas.backend.couchdb.CouchDBObjectStore` and
70-
:class `~basyx.aas.backend.local_file.LocalFileObjectStore).
70+
:class `~basyx.aas.backend.local_file.LocalFileObjectStore`).
7171
7272
The AbstractObjectStore inherits from the :class:`~collections.abc.MutableSet` abstract collections class and
7373
therefore implements all the functions of this class.

sdk/test/backend/test_couchdb.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,3 @@ def test_key_errors(self) -> None:
108108
self.object_store.discard(retrieved_submodel)
109109
self.assertEqual("'No AAS object with id https://acplt.org/Test_Submodel exists in "
110110
"CouchDB database'", str(cm.exception))
111-
112-
def test_conflict_errors(self):
113-
# Preperation: add object and retrieve it from the database
114-
example_submodel = create_example_submodel()
115-
self.object_store.add(example_submodel)
116-
retrieved_submodel = self.object_store.get_identifiable('https://acplt.org/Test_Submodel')
117-
118-
# Deleting the submodel with safe_delete should or without safe_delete should work
119-
self.object_store.discard(retrieved_submodel, True)
120-
self.assertEqual(0, len(self.object_store))
121-
122-
def test_editing(self):
123-
test_object = create_example_submodel()
124-
self.object_store.add(test_object)

sdk/test/backend/test_local_file.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,3 @@ def test_key_errors(self) -> None:
107107
self.object_store.discard(retrieved_submodel)
108108
self.assertEqual("'No AAS object with id https://acplt.org/Test_Submodel exists in "
109109
"local file database'", str(cm.exception))
110-
111-
def test_editing(self):
112-
test_object = create_example_submodel()
113-
self.object_store.add(test_object)

0 commit comments

Comments
 (0)