Skip to content

Commit

Permalink
fix(indexer): is trained set on train call
Browse files Browse the repository at this point in the history
  • Loading branch information
fhaase2 committed Jun 22, 2020
1 parent 6e07549 commit 7a648ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_index_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tests import JinaTestCase


class DummyIndexer(BaseIndexer):
class DummyIndexerTrain(BaseIndexer):

def train(self, data: 'np.ndarray', *args, **kwargs):
pass
Expand All @@ -14,7 +14,7 @@ class MyTestCase(JinaTestCase):

def test_calling_train_sets_is_trained(self):
data = np.random.rand(1, 2)
i = DummyIndexer(index_filename='test2.bin')
i = DummyIndexerTrain(index_filename='test2.bin')

# Call train method on indexer
i.train(data)
Expand Down

0 comments on commit 7a648ea

Please sign in to comment.