Skip to content

Commit

Permalink
Fix typo and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed Apr 15, 2019
1 parent bdd8206 commit d462dae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/Products/PluginIndexes/DateIndex/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ def test_not(self):
{'not': [DateTime(0),
DateTime('2002-05-08 15:16:17')]}},
values[3:])
self._checkApply(index, {'date': {'not': []}}, values[1:])

def test_naive_convert_to_utc(self):
index = self._makeOne()
Expand Down
5 changes: 3 additions & 2 deletions src/Products/PluginIndexes/KeywordIndex/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def testEmpty(self):
self._checkApply(self._some_req, [])
self._checkApply(self._overlap_req, [])
self._checkApply(self._string_req, [])
self._checkApply(self._missingvalue_1, [])
self._checkApply(self._miss_req_1, [])
self._checkApply(self._miss_req_2, [])

def testPopulated(self):
self._populateIndex()
Expand All @@ -185,7 +186,7 @@ def testPopulated(self):
self._checkApply(self._all_req, values[:-2])
self._checkApply(self._some_req, values[5:7])
self._checkApply(self._overlap_req, values[2:7])
self._checkApply(self._string_req, values[:-3])
self._checkApply(self._string_req, values[:-2])
self._checkApply(self._miss_req_1, values[7])
self._checkApply(self._miss_req_2, values[:8])

Expand Down
2 changes: 1 addition & 1 deletion src/Products/PluginIndexes/unindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _index_object(self, documentId, obj, threshold=None, attr=''):
# First we need to see if there's anything interesting to look at
datum = self._get_object_datum(obj, attr)
if datum is None:
if IIndexingMissingValue.providedby(self):
if IIndexingMissingValue.providedBy(self):
datum = MissingValue
else:
# Prevent None from being indexed. None doesn't have a valid
Expand Down

0 comments on commit d462dae

Please sign in to comment.