|
1 | 1 | #!/usr/bin/env python |
2 | | - |
| 2 | +import pytest |
3 | 3 | import collections |
4 | 4 | import collections.abc |
5 | 5 | import os |
6 | 6 | import pathlib |
7 | 7 |
|
8 | 8 | from microSALT import preset_config |
9 | 9 |
|
10 | | -@pytest.fixture |
11 | | -def exp_config(): |
12 | | - precon = { |
13 | | - 'slurm_header': {'time', 'threads', 'qos', 'job_prefix', 'project', 'type'}, |
14 | | - 'regex': {'file_pattern', 'mail_recipient', 'verified_organisms'}, |
15 | | - 'folders': {'results', 'reports', 'log_file', 'seqdata', 'profiles', 'references', 'resistances', 'genomes', 'expec', 'adapters', 'credentials'}, |
16 | | - 'threshold': {'mlst_id', 'mlst_novel_id', 'mlst_span', 'motif_id', 'motif_span', 'total_reads_warn', 'total_reads_fail', |
17 | | - 'NTC_total_reads_warn', 'NTC_total_reads_fail', 'mapped_rate_warn', 'mapped_rate_fail', 'duplication_rate_warn', |
18 | | - 'duplication_rate_fail', 'insert_size_warn', 'insert_size_fail', 'average_coverage_warn', 'average_coverage_fail', |
19 | | - 'bp_10x_warn', 'bp_10x_fail', 'bp_30x_warn', 'bp_50x_warn', 'bp_100x_warn'}, |
20 | | - 'database': {'SQLALCHEMY_DATABASE_URI', 'SQLALCHEMY_TRACK_MODIFICATIONS', 'DEBUG'}, |
21 | | - 'genologics': {'baseuri', 'username', 'password'}, |
22 | | - 'pubmlst': {'client_id', 'client_secret'}, |
23 | | - 'pasteur': {'client_id', 'client_secret'}, |
24 | | - 'singularity': {'binary', 'bind_paths', 'trimmomatic_adapters'}, |
25 | | - 'containers': {'skesa', 'blast', 'bwa', 'samtools', 'picard', 'trimmomatic', 'quast'}, |
26 | | - 'dry': True, |
27 | | - } |
28 | | - return precon |
29 | | - |
30 | 10 | def test_existence(exp_config): |
31 | 11 | """Checks that the configuration contains certain key variables""" |
32 | 12 | # level one |
|
0 commit comments