# 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
#!/usr/bin/env python

# (c) 2015-2018, ETH Zurich, Institut fuer Theoretische Physik
# Author: Dominik Gresch <greschd@gmx.ch>
"""Tests the 'slice' CLI command."""





@pytest.mark.parametrize(
    "slice_idx", [(3, 1, 2), (0, 1, 4, 2, 3, 5, 6, 8, 7, 9, 10, 11, 12)]
)
def test_cli_slice(
    models_equal,
    slice_idx,
    sample,
    cli_sparsity_arguments,
    cli_verbosity_argument,
    modify_reference_model_sparsity,
):
    """
    Check that using the CLI to slice a tight-binding model produces
    the same result as using the `slice_orbitals` method.
    """
    runner = CliRunner()
    input_file = sample("InAs_nosym.hdf5")
    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_slice.py
import tempfile
import pytest
import tbmodels
from click.testing import CliRunner
from tbmodels._cli import cli

#!/usr/bin/env python

# (c) 2015-2018, ETH Zurich, Institut fuer Theoretische Physik
# Author: Dominik Gresch <greschd@gmx.ch>
"""Tests the 'slice' CLI command."""





@pytest.mark.parametrize(
    "slice_idx", [(3, 1, 2), (0, 1, 4, 2, 3, 5, 6, 8, 7, 9, 10, 11, 12)]
)
def test_cli_slice(
    models_equal,
    slice_idx,
    sample,
    cli_sparsity_arguments,
    cli_verbosity_argument,
    modify_reference_model_sparsity,
):
    """
    Check that using the CLI to slice a tight-binding model produces
    the same result as using the `slice_orbitals` method.
    """
    runner = CliRunner()
    input_file = sample("InAs_nosym.hdf5")
    with tempfile.NamedTemporaryFile() as out_file:
        run = runner.invoke(

            cli,