# Path: cap_client/cli/cli.py



import os
import pytest
from click.testing import CliRunner
from cap_client.cli import cli
        """
        res = runner.invoke(cli, cmd.split(), **kwargs)

        if res.output:
            res.stripped_output = res.output.strip()

        return res

    yield run


@pytest.yield_fixture(scope='module')
def runner():
    """Fixture for CLI runner function.

    Returns a function accepting a single parameter (cli command as string).
    """
    runner = CliRunner()

    def run(cmd, **kwargs):
        """Run the command from the CLI.
        :param cmd: command with its arguments
        :type cmd: str

        :warn: when passing your command remember
        to not have any whitespaces inside an argument values!

        :return: runner result
        :rtype: `click.testing.Result`
        """

# Path: cap_client/cli/cli.py



# Path: tests/unit/conftest.py
import os
import pytest
from click.testing import CliRunner
from cap_client.cli import cli

        """
        res = runner.invoke(cli, cmd.split(), **kwargs)

        if res.output:
            res.stripped_output = res.output.strip()

        return res

    yield run


@pytest.yield_fixture(scope='module')
def runner():
    """Fixture for CLI runner function.

    Returns a function accepting a single parameter (cli command as string).
    """
    runner = CliRunner()

    def run(cmd, **kwargs):
        """Run the command from the CLI.
        :param cmd: command with its arguments
        :type cmd: str

        :warn: when passing your command remember
        to not have any whitespaces inside an argument values!

        :return: runner result
        :rtype: `click.testing.Result`
        """

        res = runner.invoke(cli, cmd.split(), **kwargs)