We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163cca0 commit 26b4e51Copy full SHA for 26b4e51
celery_haystack/tests/tests.py
@@ -1,12 +1,12 @@
1
from django.core.management import call_command
2
-from django.test import TestCase
+from django.test import TransactionTestCase
3
4
from haystack.query import SearchQuerySet
5
6
from .models import Note
7
8
9
-class QueuedSearchIndexTestCase(TestCase):
+class QueuedSearchIndexTestCase(TransactionTestCase):
10
11
def assertSearchResultLength(self, count):
12
self.assertEqual(count, len(SearchQuerySet()))
0 commit comments