# Path: yatsm/cli/main.py
# @click_plugins.with_plugins(ep for ep in
#                             iter_entry_points('yatsm.cli'))
# @click.group(help='YATSM command line interface', context_settings=_context)
# @click.version_option(yatsm.__version__)
# @click.option('--num_threads', metavar='<threads>', default=1, type=int,
#               show_default=True, callback=options.valid_int_gt_zero,
#               help='Number of threads for OPENBLAS/MKL/OMP used in NumPy')
# @click.option('--verbose', '-v', is_flag=True, help='Be verbose')
# @click.option('--verbose-yatsm', is_flag=True,
#               help='Show verbose debugging messages in YATSM algorithm')
# @click.option('--quiet', '-q', is_flag=True, help='Be quiet')
# @click.pass_context
# def cli(ctx, num_threads, verbose, verbose_yatsm, quiet):
#     # Logging config
#     if verbose:
#         logger.setLevel(logging.DEBUG)
#     if verbose_yatsm:
#         logger_algo.setLevel(logging.DEBUG)
#     if quiet:
#         logger.setLevel(logging.WARNING)
#         logger_algo.setLevel(logging.WARNING)


import imp
import os
import matplotlib as mpl
import matplotlib.cm  # noqa
import pytest
import yatsm.cli.pixel
from click.testing import CliRunner
from yatsm.cli.main import cli
    from yatsm.cli.main import cli
         '--plot', 'TS', '--plot', 'DOY', '--plot', 'VAL',
         '--style', 'ggplot',
         example_timeseries['config'], '1', '1'
         ])
    assert result.exit_code == 0


@mpl_skip
def test_cli_pixel_pass_4(example_timeseries):
    """ Correctly run for one pixel with change and override algorithm config
    """
    runner = CliRunner()
    result = runner.invoke(
        cli,
        ['-v', 'pixel',
         '--band', '5',
         '--plot', 'TS',
         '--algo_kw', 'consecutive=3',
         '--style', 'ggplot',
         example_timeseries['config'], '1', '3'
         ])
    assert result.exit_code == 0


@mpl_skip
def test_cli_pixel_pass_5(example_timeseries):
    """ Correctly run for one pixel with season visualization
    """
    runner = CliRunner()
    result = runner.invoke(

# Path: yatsm/cli/main.py
# @click_plugins.with_plugins(ep for ep in
#                             iter_entry_points('yatsm.cli'))
# @click.group(help='YATSM command line interface', context_settings=_context)
# @click.version_option(yatsm.__version__)
# @click.option('--num_threads', metavar='<threads>', default=1, type=int,
#               show_default=True, callback=options.valid_int_gt_zero,
#               help='Number of threads for OPENBLAS/MKL/OMP used in NumPy')
# @click.option('--verbose', '-v', is_flag=True, help='Be verbose')
# @click.option('--verbose-yatsm', is_flag=True,
#               help='Show verbose debugging messages in YATSM algorithm')
# @click.option('--quiet', '-q', is_flag=True, help='Be quiet')
# @click.pass_context
# def cli(ctx, num_threads, verbose, verbose_yatsm, quiet):
#     # Logging config
#     if verbose:
#         logger.setLevel(logging.DEBUG)
#     if verbose_yatsm:
#         logger_algo.setLevel(logging.DEBUG)
#     if quiet:
#         logger.setLevel(logging.WARNING)
#         logger_algo.setLevel(logging.WARNING)


# Path: tests/cli/test_pixel.py
import imp
import os
import matplotlib as mpl
import matplotlib.cm  # noqa
import pytest
import yatsm.cli.pixel
from click.testing import CliRunner
from yatsm.cli.main import cli
    from yatsm.cli.main import cli

         '--plot', 'TS', '--plot', 'DOY', '--plot', 'VAL',
         '--style', 'ggplot',
         example_timeseries['config'], '1', '1'
         ])
    assert result.exit_code == 0


@mpl_skip
def test_cli_pixel_pass_4(example_timeseries):
    """ Correctly run for one pixel with change and override algorithm config
    """
    runner = CliRunner()
    result = runner.invoke(
        cli,
        ['-v', 'pixel',
         '--band', '5',
         '--plot', 'TS',
         '--algo_kw', 'consecutive=3',
         '--style', 'ggplot',
         example_timeseries['config'], '1', '3'
         ])
    assert result.exit_code == 0


@mpl_skip
def test_cli_pixel_pass_5(example_timeseries):
    """ Correctly run for one pixel with season visualization
    """
    runner = CliRunner()
    result = runner.invoke(

        cli,