Skip to content

Commit

Permalink
add and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gbouras13 committed Jul 23, 2024
1 parent 901e9c1 commit 328ad0b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/test_data/overall_inputs/PP04977_pilon_subset.fasta
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
>NODE_3970_
GCTCCGCACCTCGTGCAGCACCGAATGCGCCATTGGCTGCGGCGGCTTCGCAAGCGATGGCGGCGAGCCAGCCTGTGAAT
CAGACACCTGCACCTGCTCAAGTGGCTACTCCTGCGCCCGTACAGCCATTACAGGTTAACGACGAGCCCTCTCGCGATAG
CTTTGATCCAATGGCTGGTGCGAGTTCTCAACAAGCGCCTGCCCGTGCCGAGCAGCGTACAGTCCAGGTAG
7 changes: 6 additions & 1 deletion tests/test_dnaapler.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,12 @@ def test_begin_dnaapler(self):
threads = str(8)
gene = "terL"
outdir = os.path.join(test_data, "bad_dir")
begin_dnaapler(input, outdir, threads, gene)
params = {
"--input": input,
"--output": outdir,
"--threads": threads,
}
begin_dnaapler(input, outdir, threads, gene, params)

def test_end_dnaapler(self):
time = 2324.0
Expand Down
5 changes: 5 additions & 0 deletions tests/test_overall.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ def test_custom(tmp_dir):
cmd = f"dnaapler all -i {input_fasta} -o {tmp_dir} -t 1 -f -c {custom}"
exec_command(cmd)

def test_no_overlap(tmp_dir):
"""test no overlap"""
input_fasta: Path = f"{overall_test_data}/PP04977_pilon_subset.fasta"
cmd = f"dnaapler all -i {input_fasta} -o {tmp_dir} -t 1 -f"
exec_command(cmd)

def test_all_dnaa_repa(tmp_dir):
"""test all dnaa repa"""
Expand Down

0 comments on commit 328ad0b

Please sign in to comment.