georgeamccarthy / protein_search

The neural search engine for proteins.
GNU Affero General Public License v3.0
15 stars 6 forks source link

MyIndexer tests are failing because a flow has not been opened. #21

Closed georgeamccarthy closed 3 years ago

georgeamccarthy commented 3 years ago

Describe the bug MyIndexer tests are failing because a flow has not been opened.

To Reproduce Steps to reproduce the behavior:

  1. make test
  2. see error

Expected behavior Pass tests

Additional context I think these tests run methods on MyIndexer() without instantiating an object. This means self.workspace is not set. Instead use:

with flow:
    flow.index(...)...
fissoreg commented 3 years ago

Fixed in #22