diff options
Diffstat (limited to 'rtemsspec')
-rw-r--r-- | rtemsspec/items.py | 1 | ||||
-rw-r--r-- | rtemsspec/tests/test_items_item.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/rtemsspec/items.py b/rtemsspec/items.py index 4b57cee6..da68d4f3 100644 --- a/rtemsspec/items.py +++ b/rtemsspec/items.py @@ -207,6 +207,7 @@ class Item: # pylint: disable=too-many-public-methods def __init__(self, item_cache: "ItemCache", uid: str, data: Any): + data["_type"] = "" self._cache = item_cache self._ident = _UID_TO_UPPER.sub(_match_to_upper, uid) self._uid = uid diff --git a/rtemsspec/tests/test_items_item.py b/rtemsspec/tests/test_items_item.py index 1b4dd9f4..a834097b 100644 --- a/rtemsspec/tests/test_items_item.py +++ b/rtemsspec/tests/test_items_item.py @@ -84,7 +84,7 @@ def test_data(): data = {} data["x"] = "y" item = Item(EmptyItemCache(), "z", data) - assert item.data == {"x": "y"} + assert item.data == {"_type": "", "x": "y"} def test_cache(): |