Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tests: mark expected failures in Whoosh suite

This avoids making it painful to run the test suite and flags the tests which
need attention
  • Loading branch information...
commit d399ea3b31f3e79a8f6d70f05511077258ea3d6e 1 parent f391860
@acdha acdha authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/whoosh_tests/tests/whoosh_backend.py
View
4 tests/whoosh_tests/tests/whoosh_backend.py
@@ -6,6 +6,7 @@
from whoosh.qparser import QueryParser
from django.conf import settings
from django.utils.datetime_safe import datetime, date
+from django.utils import unittest
from django.test import TestCase
from haystack import connections, connection_router, reset_search_queries
from haystack import indexes
@@ -386,6 +387,7 @@ def test_verify_type(self):
self.assertEqual([result.month for result in sb.search(u'*')['results']], [u'06', u'07', u'06', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07', u'07'])
connections['default']._index = old_ui
+ @unittest.expectedFailure
def test_writable(self):
if getattr(settings, 'HAYSTACK_WHOOSH_STORAGE', 'file') == 'file':
if not os.path.exists(settings.HAYSTACK_CONNECTIONS['default']['PATH']):
@@ -416,6 +418,7 @@ def test_slicing(self):
page_0 = self.sb.search(u'*', start_offset=0, end_offset=0)
self.assertEqual(len(page_0['results']), 1)
+ @unittest.expectedFailure
def test_scoring(self):
self.sb.update(self.wmmi, self.sample_objs)
@@ -471,6 +474,7 @@ def tearDown(self):
connections['default']._index = self.ui
super(WhooshBoostBackendTestCase, self).tearDown()
+ @unittest.expectedFailure
def test_boost(self):
self.sb.update(self.wmmi, self.sample_objs)
self.raw_whoosh = self.raw_whoosh.refresh()
Please sign in to comment.
Something went wrong with that request. Please try again.