MCPcopy
hub / github.com/locustio/locust / _

Method _

locust/test/test_parser.py:332–337  ·  view source on GitHub ↗
(parser, **kw)

Source from the content-addressed store, hash-verified

330 def test_custom_argument(self):
331 @locust.events.init_command_line_parser.add_listener
332 def _(parser, **kw):
333 parser.add_argument("--custom-bool-arg", action="store_true", help="Custom boolean flag")
334 parser.add_argument(
335 "--custom-string-arg",
336 help="Custom string arg",
337 )
338
339 options = get_parser().parse_args(
340 args=[

Callers

nothing calls this directly

Calls 1

add_argumentMethod · 0.80

Tested by

no test coverage detected