MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / _make_context

Function _make_context

packages/sync/tests/test_server.py:23–35  ·  view source on GitHub ↗
(
    identity: str | None = "0xabc",
    action: str = "pull",
    collection: str = "test",
    params: dict | None = None,
)

Source from the content-addressed store, hash-verified

21
22
23def _make_context(
24 identity: str | None = "0xabc",
25 action: str = "pull",
26 collection: str = "test",
27 params: dict | None = None,
28) -> StoreContext:
29 return StoreContext(
30 collection=collection,
31 params=params or {},
32 identity=identity,
33 roles=(),
34 action=action,
35 )
36
37
38class TestGetIdentity:

Calls

no outgoing calls

Tested by

no test coverage detected