Skip to content

Commit

Permalink
OrthoInspector tests no longer uses ortholog_mapper fixture when not …
Browse files Browse the repository at this point in the history
…required
  • Loading branch information
GuyTeichman committed Oct 31, 2023
1 parent 2b9dc8a commit ca989de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,11 +1311,11 @@ def test_get_database_organisms(self, ortholog_mapper):
('auto', 'first'),
('Eukaryota', 'last'),
('Eukaryota', 'random')])
def test_get_orthologs(self, ortholog_mapper, database, non_unique_mode):
ortholog_mapper = OrthoInspectorOrthologMapper(map_to_organism=6238, map_from_organism=6239,
gene_id_type='UniProtKB AC/ID')
def test_get_orthologs(self, database, non_unique_mode):
mapper = OrthoInspectorOrthologMapper(map_to_organism=6238, map_from_organism=6239,
gene_id_type='UniProtKB AC/ID')
ids = ('G5EDF7', 'P34544')
ortholog_one2one, ortholog_one2many = ortholog_mapper.get_orthologs(ids, non_unique_mode, database)
ortholog_one2one, ortholog_one2many = mapper.get_orthologs(ids, non_unique_mode, database)

assert isinstance(ortholog_one2one, OrthologDict)
assert isinstance(ortholog_one2many, OrthologDict)
Expand Down

0 comments on commit ca989de

Please sign in to comment.