Updated obi test to work with changes in taxonomy API
This commit is contained in:
@ -42,9 +42,9 @@ default_config = {
|
|||||||
|
|
||||||
|
|
||||||
def test_taxo(config, infos):
|
def test_taxo(config, infos):
|
||||||
tax1 = Taxonomy.open(infos['dms'], config['obi']['taxo'], taxdump=True)
|
tax1 = Taxonomy.open_taxdump(infos['dms'], config['obi']['taxo'])
|
||||||
tax1.write(TAXTEST)
|
tax1.write(TAXTEST)
|
||||||
tax2 = Taxonomy.open(infos['dms'], TAXTEST, taxdump=False)
|
tax2 = Taxonomy.open(infos['dms'], TAXTEST)
|
||||||
assert len(tax1) == len(tax2), "Length of written taxonomy != length of read taxdump : "+str(len(tax2))+" != "+str(len(tax1))
|
assert len(tax1) == len(tax2), "Length of written taxonomy != length of read taxdump : "+str(len(tax2))+" != "+str(len(tax1))
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
|
Reference in New Issue
Block a user