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

Method raises_error_for_context_name_clashes

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

Source from the content-addressed store, hash-verified

31 Parser(initial=Context(), contexts=[Context()])
32
33 def raises_error_for_context_name_clashes(self) -> None:
34 with raises(ValueError):
35 Parser(contexts=(Context("foo"), Context("foo")))
36
37 def raises_error_for_context_alias_and_name_clashes(self) -> None:
38 with raises(ValueError):

Callers

nothing calls this directly

Calls 2

ParserClass · 0.90
ContextClass · 0.85

Tested by

no test coverage detected