(cmd, **kwargs)
| 22 | |
| 23 | |
| 24 | def _usage(cmd, **kwargs): |
| 25 | params = MagicMock() |
| 26 | params.environment_variables = {} |
| 27 | out = io.StringIO() |
| 28 | try: |
| 29 | with redirect_stdout(out): |
| 30 | cmd.execute_args(params, '-h', **kwargs) |
| 31 | except SystemExit: |
| 32 | pass |
| 33 | return out.getvalue().splitlines()[0] |
| 34 | |
| 35 | |
| 36 | def test_group_sub_command_keeps_its_full_name(): |
no test coverage detected