Permalink
Browse files

Ensure highlights constructor is tested

  • Loading branch information...
1 parent 4259d35 commit 2bd4a3c031f5699b395388f5cdfb113d6d76aae9 @davidjb davidjb committed with davidjb Nov 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 sunburnt/test_search.py
View
@@ -586,8 +586,9 @@ def check_transform_results(highlighting, constructor, solr_highlights):
q = highlighting_interface.query('zero')
if highlighting:
q = q.highlight(highlighting)
- docs = q.execute().result.docs
+ docs = q.execute(constructor=constructor).result.docs
assert_equal(docs[0].get('solr_highlights'), solr_highlights)
+ assert isinstance(docs[0], constructor)
def test_transform_result():
for highlighting, constructor, solr_highlights in solr_highlights_data:

0 comments on commit 2bd4a3c

Please sign in to comment.