コード例 #1
0
ファイル: test_core.py プロジェクト: clarkperkins/click-shell
    def test_fail_on_bad_command(self):
        command = click.Command('test-command')

        ctx = click.Context(command)

        with pytest.raises(AssertionError):
            make_click_shell(ctx)
コード例 #2
0
ファイル: test_core.py プロジェクト: terrettaz/click-shell
    def test_fail_on_bad_command(self):
        command = click.Command('test-command')

        ctx = click.Context(command)

        with pytest.raises(AssertionError):
            make_click_shell(ctx)
コード例 #3
0
ファイル: test_core.py プロジェクト: clarkperkins/click-shell
    def test_with_group(self):
        command = click.Group()

        ctx = click.Context(command)

        shell = make_click_shell(ctx)

        assert isinstance(shell, ClickCmd)
コード例 #4
0
ファイル: test_core.py プロジェクト: terrettaz/click-shell
    def test_with_group(self):
        command = click.Group()

        ctx = click.Context(command)

        shell = make_click_shell(ctx)

        assert isinstance(shell, ClickCmd)