MCPcopy Create free account
hub / github.com/pytest-dev/pytest / fix_cache_order

Function fix_cache_order

src/_pytest/fixtures.py:299–306  ·  view source on GitHub ↗
(
    item: nodes.Item,
    argkeys_cache: Dict[Scope, Dict[nodes.Item, Dict[_Key, None]]],
    items_by_argkey: Dict[Scope, Dict[_Key, "Deque[nodes.Item]"]],
)

Source from the content-addressed store, hash-verified

297
298
299def fix_cache_order(
300 item: nodes.Item,
301 argkeys_cache: Dict[Scope, Dict[nodes.Item, Dict[_Key, None]]],
302 items_by_argkey: Dict[Scope, Dict[_Key, "Deque[nodes.Item]"]],
303) -> None:
304 for scope in HIGH_SCOPES:
305 for key in argkeys_cache[scope].get(item, []):
306 items_by_argkey[scope][key].appendleft(item)
307
308
309def reorder_items_atscope(

Callers 1

reorder_items_atscopeFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected