MCPcopy Index your code
hub / github.com/pyinvoke/invoke / can_take_initial_and_other_contexts

Method can_take_initial_and_other_contexts

tests/parser_parser.py:12–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10 assert p.initial == c
11
12 def can_take_initial_and_other_contexts(self) -> None:
13 c1 = Context("foo")
14 c2 = Context("bar")
15 p = Parser(initial=Context(), contexts=[c1, c2])
16 assert p.contexts["foo"] == c1
17 assert p.contexts["bar"] == c2
18
19 def can_take_just_other_contexts(self) -> None:
20 c = Context("foo")

Callers

nothing calls this directly

Calls 2

ParserClass · 0.90
ContextClass · 0.85

Tested by

no test coverage detected