Changeset 9667971 in rtems-central


Ignore:
Timestamp:
Apr 15, 2020, 11:31:52 AM (14 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
1a2fcaf
Parents:
c1f9e31
Message:

items: Add ItemCache?.all

Location:
rtemsqual
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemsqual/items.py

    rc1f9e31 r9667971  
    142142
    143143    @property
     144    def all(self) -> ItemMap:
     145        """ Returns the map of all specification items. """
     146        return self._items
     147
     148    @property
    144149    def top_level(self) -> ItemMap:
    145         """ Returns the list of top-level specification items. """
     150        """ Returns the map of top-level specification items. """
    146151        return self._top_level
    147152
  • rtemsqual/tests/test_items_itemcache.py

    rc1f9e31 r9667971  
    5353    assert len(t) == 1
    5454    assert t["p"]["v"] == "p"
     55    a = ic.all
     56    assert len(a) == 2
     57    assert a["p"]["v"] == "p"
     58    assert a["c"]["v"] == "c"
    5559    ic2 = ItemCache(config)
    5660    assert ic2["c"]["v"] == "c"
Note: See TracChangeset for help on using the changeset viewer.