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


import tempfile
import tbmodels
from click.testing import CliRunner
from tbmodels._cli import cli
        run = runner.invoke(
            cli,
            [
                "symmetrize",
                "-o",
                out_file.name,
                "-s",
                sample("InAs_symmetries.hdf5"),
                "-i",
                sample("InAs_nosym.hdf5"),
            ]
            + cli_sparsity_arguments
            + cli_verbosity_argument,
            catch_exceptions=False,
        )
        print(run.output)
        model_res = tbmodels.Model.from_hdf5_file(out_file.name)
    model_reference = tbmodels.Model.from_hdf5_file(sample("InAs_sym_reference.hdf5"))
    modify_reference_model_sparsity(model_reference)
    models_close(model_res, model_reference)


def test_invalid_symmetries_file(sample):
    """
    Test the error generated by the 'symmetrize' command when an invalid
    symmetries file is supplied.
    """
    runner = CliRunner(mix_stderr=False)
    with tempfile.NamedTemporaryFile() as out_file:
        run = runner.invoke(

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


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

        run = runner.invoke(
            cli,
            [
                "symmetrize",
                "-o",
                out_file.name,
                "-s",
                sample("InAs_symmetries.hdf5"),
                "-i",
                sample("InAs_nosym.hdf5"),
            ]
            + cli_sparsity_arguments
            + cli_verbosity_argument,
            catch_exceptions=False,
        )
        print(run.output)
        model_res = tbmodels.Model.from_hdf5_file(out_file.name)
    model_reference = tbmodels.Model.from_hdf5_file(sample("InAs_sym_reference.hdf5"))
    modify_reference_model_sparsity(model_reference)
    models_close(model_res, model_reference)


def test_invalid_symmetries_file(sample):
    """
    Test the error generated by the 'symmetrize' command when an invalid
    symmetries file is supplied.
    """
    runner = CliRunner(mix_stderr=False)
    with tempfile.NamedTemporaryFile() as out_file:
        run = runner.invoke(

            cli,