Skip to content

Extend ObjectStore tests to both implementations#569

Merged
s-heppner merged 2 commits into
eclipse-basyx:developfrom
rwth-iat:improve/test-store-extension
Jul 6, 2026
Merged

Extend ObjectStore tests to both implementations#569
s-heppner merged 2 commits into
eclipse-basyx:developfrom
rwth-iat:improve/test-store-extension

Conversation

@JAB1305

@JAB1305 JAB1305 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Previously, only the DictIdentifiableStore was tested in the unittests.

This extends the unittests by adding a _STORE_CLASSES class variable
and consolidates duplicated test methods into subTest loops, covering
both Dict and Set store implementations.

Before:
basyx/aas/model/provider.py 119 37 32 0 68% 34, 60, 174-180, [...]

After:
basyx/aas/model/provider.py 125 11 32 0 93% 34, 60, 72, [...]

JAB1305 added 2 commits June 9, 2026 13:53
A `_STORE_CLASSES` class variable is introduced and duplicate test
 methods are consolidated into `subTest` loops covering both store implementations.
@JAB1305

JAB1305 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Also add type annotations, now AbstractObjectStore instead of specific implementations (Dict / Set)

@JAB1305 JAB1305 changed the title Extend store tests to both implementations Extend ObjectStore tests to both implementations Jun 9, 2026
@s-heppner s-heppner merged commit c308552 into eclipse-basyx:develop Jul 6, 2026
13 checks passed
@s-heppner s-heppner deleted the improve/test-store-extension branch July 6, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants