Mercurial > repos > sanbi-uwc > confil
diff test/test_runner.py @ 3:53a61865e86e draft
planemo upload for repository https://github.com/COMBAT-TB/confil commit cb48efaef286f70c94607cb583a61bb9e3d71604
author | sanbi-uwc |
---|---|
date | Wed, 27 Feb 2019 06:20:05 -0500 |
parents | |
children | 2b90d0574ea5 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/test_runner.py Wed Feb 27 06:20:05 2019 -0500 @@ -0,0 +1,23 @@ +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/") + +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 + + +def test_runner(cli_runner): + result = cli_runner.invoke(confil, ["--paired", FILE_1, FILE_2]) + assert result.exit_code == 0