# Path: ephypype/commands/neuropycon.py
# def cli(ncpu, plugin, save_path, workflow_name, verbose):
# def process_pipeline(nodes, ncpu, plugin, save_path, workflow_name, verbose):
# def infosrc(fif_files):
# def psd(fmin, fmax):
# def connectivity(band, method, sfreq, tf_mode):
# def fif_ep_2_ts():
# def multiscale(m, r):
# def ica(n_components, ecg_ch_name, eog_ch_name):
# def preproc(l_freq, h_freq, ds_freq):
# def ds2fif():
# def epoch(length):
# def map_path(key, iter_mapping):
# def output_greeting():


import os
import os.path as op
import matplotlib
from ephypype.commands import neuropycon
from click.testing import CliRunner
"""Test neuropycon command line interface"""

# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)



matplotlib.use('Agg')  # for testing don't use X server


def test_input_linear():
    """Test input node with Linear plugin (serial workflow execution)"""
    runner = CliRunner()
    wf_name = 'test_input_linear'
    with runner.isolated_filesystem():
        with open('temp.fif', 'w') as f:
            f.write('temp')

# Path: ephypype/commands/neuropycon.py
# def cli(ncpu, plugin, save_path, workflow_name, verbose):
# def process_pipeline(nodes, ncpu, plugin, save_path, workflow_name, verbose):
# def infosrc(fif_files):
# def psd(fmin, fmax):
# def connectivity(band, method, sfreq, tf_mode):
# def fif_ep_2_ts():
# def multiscale(m, r):
# def ica(n_components, ecg_ch_name, eog_ch_name):
# def preproc(l_freq, h_freq, ds_freq):
# def ds2fif():
# def epoch(length):
# def map_path(key, iter_mapping):
# def output_greeting():


# Path: ephypype/commands/tests/test_cli.py
import os
import os.path as op
import matplotlib
from ephypype.commands import neuropycon
from click.testing import CliRunner

"""Test neuropycon command line interface"""

# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)



matplotlib.use('Agg')  # for testing don't use X server


def test_input_linear():
    """Test input node with Linear plugin (serial workflow execution)"""
    runner = CliRunner()
    wf_name = 'test_input_linear'
    with runner.isolated_filesystem():
        with open('temp.fif', 'w') as f:
            f.write('temp')

        result = runner.invoke(neuropycon.cli, ['-s', os.getcwd(),