Mercurial > repos > sanbi-uwc > confil
comparison 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 |
comparison
equal
deleted
inserted
replaced
2:ca3c6f955c3e | 3:53a61865e86e |
---|---|
1 import os | |
2 | |
3 import pytest | |
4 from click.testing import CliRunner | |
5 | |
6 from confil.confil import confil | |
7 | |
8 CURR_DIR = os.path.dirname(os.path.abspath(__file__)) | |
9 TEST_DATA_DIR = os.path.join(CURR_DIR, "test_data/") | |
10 | |
11 FILE_1 = os.path.join(TEST_DATA_DIR, "test_file_1.fastq") | |
12 FILE_2 = os.path.join(TEST_DATA_DIR, "test_file_2.fastq") | |
13 | |
14 | |
15 @pytest.fixture(scope="module") | |
16 def cli_runner(): | |
17 runner = CliRunner() | |
18 return runner | |
19 | |
20 | |
21 def test_runner(cli_runner): | |
22 result = cli_runner.invoke(confil, ["--paired", FILE_1, FILE_2]) | |
23 assert result.exit_code == 0 |