Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pyinvoke/invoke
/ can_take_initial_context
Method
can_take_initial_context
tests/parser_parser.py:7–10 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
5
6
class
Parser_:
7
def
can_take_initial_context(self) -> None:
8
c = Context()
9
p = Parser(initial=c)
10
assert p.initial == c
11
12
def
can_take_initial_and_other_contexts(self) -> None:
13
c1 = Context(
"foo"
)
Callers
nothing calls this directly
Calls
2
Parser
Class · 0.90
Context
Class · 0.85
Tested by
no test coverage detected