# Path: tbmodels/_cli.py
# @click.group()
# @click.version_option(version=tbmodels_version)
# def cli():
#     pass


import tempfile
import pytest
import tbmodels
from click.testing import CliRunner
from tbmodels._cli import cli

@pytest.mark.parametrize("pos_kind", ["wannier", "nearest_atom"])
@pytest.mark.parametrize(
    "prefix, distance_ratio_threshold", [("silicon", 2.0), ("bi", 1)]
)
def test_cli_parse(  # pylint: disable=too-many-arguments
    models_equal,
    prefix,
    sample,
    pos_kind,
    cli_sparsity_arguments,
    cli_verbosity_argument,
    modify_reference_model_sparsity,
    distance_ratio_threshold,
):
    """Test the 'parse' command with different 'prefix' and 'pos_kind'."""
    runner = CliRunner()
    with tempfile.NamedTemporaryFile() as out_file:
        if distance_ratio_threshold is None:
            distance_ratio_arguments = []
            distance_ratio_kwargs = {}
        else:
            distance_ratio_arguments = [
                "--distance-ratio-threshold",
                str(distance_ratio_threshold),
            ]
            distance_ratio_kwargs = {
                "distance_ratio_threshold": distance_ratio_threshold
            }
        run = runner.invoke(

# Path: tbmodels/_cli.py
# @click.group()
# @click.version_option(version=tbmodels_version)
# def cli():
#     pass


# Path: tests/test_cli_parse.py
import tempfile
import pytest
import tbmodels
from click.testing import CliRunner
from tbmodels._cli import cli


@pytest.mark.parametrize("pos_kind", ["wannier", "nearest_atom"])
@pytest.mark.parametrize(
    "prefix, distance_ratio_threshold", [("silicon", 2.0), ("bi", 1)]
)
def test_cli_parse(  # pylint: disable=too-many-arguments
    models_equal,
    prefix,
    sample,
    pos_kind,
    cli_sparsity_arguments,
    cli_verbosity_argument,
    modify_reference_model_sparsity,
    distance_ratio_threshold,
):
    """Test the 'parse' command with different 'prefix' and 'pos_kind'."""
    runner = CliRunner()
    with tempfile.NamedTemporaryFile() as out_file:
        if distance_ratio_threshold is None:
            distance_ratio_arguments = []
            distance_ratio_kwargs = {}
        else:
            distance_ratio_arguments = [
                "--distance-ratio-threshold",
                str(distance_ratio_threshold),
            ]
            distance_ratio_kwargs = {
                "distance_ratio_threshold": distance_ratio_threshold
            }
        run = runner.invoke(

            cli,