MCPcopy Create free account
hub / github.com/pyinvoke/invoke / can_take_just_other_contexts

Method can_take_just_other_contexts

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

Source from the content-addressed store, hash-verified

17 assert p.contexts["bar"] == c2
18
19 def can_take_just_other_contexts(self) -> None:
20 c = Context("foo")
21 p = Parser(contexts=[c])
22 assert p.contexts["foo"] == c
23
24 def can_take_just_contexts_as_non_keyword_arg(self) -> None:
25 c = Context("foo")

Callers

nothing calls this directly

Calls 2

ParserClass · 0.90
ContextClass · 0.85

Tested by

no test coverage detected