view test/test_runner.py @ 13:bbf9ab2ebee7 draft default tip

planemo upload for repository https://github.com/COMBAT-TB/confil commit fcda5ac2013e3253d68cb6db06acf3b5450dcd0c
author sanbi-uwc
date Tue, 12 Mar 2019 09:16:35 -0400
parents 5ec97cccb3fe
children
line wrap: on
line source

import os

import pytest
from click.testing import CliRunner

from confil.confil import confil

CURR_DIR = os.path.dirname(os.path.abspath(__file__))
TEST_DATA_DIR = os.path.join(CURR_DIR, "test_data/")
TEST_REPORT = os.path.join(TEST_DATA_DIR, "test_file.tab")
FILE_1 = os.path.join(TEST_DATA_DIR, "test_file_1.fastq")
FILE_2 = os.path.join(TEST_DATA_DIR, "test_file_2.fastq")


@pytest.fixture(scope="module")
def cli_runner():
    runner = CliRunner()
    return runner


@pytest.mark.skip(reason="No way of currently testing this. It's KRAKEN!")
def test_runner(cli_runner):
    result = cli_runner.invoke(confil, ["--paired", FILE_1, FILE_2])
    assert result.exit_code == 0