Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorganl committed Jun 1, 2022
1 parent 5eb5a4a commit d88ae4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,12 @@ def test_update(self):
self.assertTrue(test_refpkg.svc is not None)
return

def test_tmp(self):
from treesapp import commands
os.chdir("/home/connor/Desktop/NrfA")
cmd = "-i nrfA_refseq-protein-212.hits99.fasta -c nrfA --headless --fast -o nrfA_S1 --accession2lin nrfA_refseq-protein-212.hits99.acc_id_lin_map2.tsv --overwrite -n 8"
commands.create(cmd.split())
return
# def test_tmp(self):
# from treesapp import commands
# os.chdir("")
# cmd = ""
# commands.create(cmd.split())
# return


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion tests/test_update_refpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_simulate_entrez_records(self):
fa.header_registry = register_headers(list(fa.fasta_dict.keys()))
lin_map = {"AB-750_E14_NODE_11_length_29119_cov_8.74474_ID_15_7": "d__Bacteria;p__Proteobacteria",
"2509738965_Desulfomonile_tiedjei_DCB|HgcB|1_200": "d__Bacteria; p__Proteobacteria; c__Deltaproteobacteria; o__Syntrophobacterales; f__Syntrophaceae"}
fa.change_dict_keys("num")
fa.change_dict_keys("num_id")

# Test to ensure sequences with same prefix have different EntrezRecord instances
entrez_records = simulate_entrez_records(fasta_records=fa, seq_lineage_map=lin_map)
Expand Down

0 comments on commit d88ae4d

Please sign in to comment.