def test_fail_on_bad_command(self): command = click.Command('test-command') ctx = click.Context(command) with pytest.raises(AssertionError): make_click_shell(ctx)
def test_with_group(self): command = click.Group() ctx = click.Context(command) shell = make_click_shell(ctx) assert isinstance(shell, ClickCmd)