Skip to content

Commit

Permalink
Update tests which depended on missing trailing newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
asedeno committed Sep 23, 2021
1 parent 5eafedf commit 2eb168c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/xapian_tests/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def test_highlight(self):

results = self.backend.search(xapian.Query('indexed'), highlight=True)['results']
self.assertEqual([result.highlighted['text'] for result in results],
['<em>indexed</em>!\n1', '<em>indexed</em>!\n2', '<em>indexed</em>!\n3'])
['<em>indexed</em>!\n1\n', '<em>indexed</em>!\n2\n', '<em>indexed</em>!\n3\n'])

def test_spelling_suggestion(self):
self.assertEqual(self.backend.search(xapian.Query('indxe'))['hits'], 0)
Expand Down

0 comments on commit 2eb168c

Please sign in to comment.