MCPcopy Index your code
hub / github.com/hugapi/hug / test_cli_interface_api_without_exit_codes

Function test_cli_interface_api_without_exit_codes

tests/test_api.py:119–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117
118
119def test_cli_interface_api_without_exit_codes():
120 @hug.object(api=api)
121 class TrueOrFalse:
122 @hug.object.cli
123 def true(self):
124 return True
125
126 @hug.object.cli
127 def false(self):
128 return False
129
130 api.cli(args=[None, "true"])
131 api.cli(args=[None, "false"])

Callers

nothing calls this directly

Calls 1

cliMethod · 0.45

Tested by

no test coverage detected