Skip to content

Commit

Permalink
temp not tmp - it isnt timelimit
Browse files Browse the repository at this point in the history
  • Loading branch information
gbouras13 committed Aug 23, 2023
1 parent a7716b0 commit 57e60e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/test_overall.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_download(tmp_dir):
def test_overall(tmp_dir):
"""test pharokka overall"""
input_fasta: Path = f"{standard_data}/SAOMS1.fasta"
cmd = f"pharokka.py -i {input_fasta} -d {database_dir} -o {tmp_dir} -t {threads} -f"
cmd = f"pharokka.py -i {input_fasta} -d {database_dir} -o {temp_dir} -t {threads} -f"
exec_command(cmd)


Expand Down Expand Up @@ -135,7 +135,7 @@ def test_overall(tmp_dir):
# exec_command(cmd)


# temp_dir = Path(f"{test_data}/fake_out")



# class testFails(unittest.TestCase):
Expand Down
8 changes: 4 additions & 4 deletions tests/test_proteins.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

# test data
test_data = Path("tests/test_data")

database_dir = Path(f"{test_data}/database")
overall_data = Path(f"{test_data}/overall")
meta_data = Path(f"{test_data}/Meta_example")
Expand All @@ -45,6 +44,7 @@ def remove_directory(dir_path):
def tmp_dir(tmpdir_factory):
return tmpdir_factory.mktemp("tmp")

temp_dir = Path(f"{proteins_data}/fake_out")

def exec_command(cmnd, stdout=subprocess.PIPE, stderr=subprocess.PIPE):
"""executes shell command and returns stdout if completes exit code 0
Expand Down Expand Up @@ -72,21 +72,21 @@ def test_download(tmp_dir):
def test_proteins(tmp_dir):
"""test pharokka proteins"""
input_fasta: Path = f"{proteins_data}/phanotate.faa"
cmd = f"pharokka_proteins.py -i {input_fasta} -d {database_dir} -o {tmp_dir} -t {threads} -f"
cmd = f"pharokka_proteins.py -i {input_fasta} -d {database_dir} -o {temp_dir} -t {threads} -f"
exec_command(cmd)


def test_proteins_hmm_only(tmp_dir):
"""test pharokka proteins hmm_only"""
input_fasta: Path = f"{proteins_data}/phanotate.faa"
cmd = f"pharokka_proteins.py -i {input_fasta} -d {database_dir} -o {tmp_dir} -t {threads} -f --hmm_only"
cmd = f"pharokka_proteins.py -i {input_fasta} -d {database_dir} -o {temp_dir} -t {threads} -f --hmm_only"
exec_command(cmd)


def test_proteins_mmseqs_only(tmp_dir):
"""test pharokka proteins mmseqs_only"""
input_fasta: Path = f"{proteins_data}/phanotate.faa"
cmd = f"pharokka_proteins.py -i {input_fasta} -d {database_dir} -o {tmp_dir} -t {threads} -f --mmseqs2_only"
cmd = f"pharokka_proteins.py -i {input_fasta} -d {database_dir} -o {temp_dir} -t {threads} -f --mmseqs2_only"
exec_command(cmd)


Expand Down

0 comments on commit 57e60e6

Please sign in to comment.