Example #1
0
    def test_fail_on_bad_command(self):
        command = click.Command('test-command')

        ctx = click.Context(command)

        with pytest.raises(AssertionError):
            make_click_shell(ctx)
Example #2
0
    def test_fail_on_bad_command(self):
        command = click.Command('test-command')

        ctx = click.Context(command)

        with pytest.raises(AssertionError):
            make_click_shell(ctx)
Example #3
0
    def test_with_group(self):
        command = click.Group()

        ctx = click.Context(command)

        shell = make_click_shell(ctx)

        assert isinstance(shell, ClickCmd)
Example #4
0
    def test_with_group(self):
        command = click.Group()

        ctx = click.Context(command)

        shell = make_click_shell(ctx)

        assert isinstance(shell, ClickCmd)