()
| 117 | |
| 118 | |
| 119 | def 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"]) |