mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-11 02:20:59 +00:00
Failing test for get_search_promotions tag crash
This commit is contained in:
parent
f615010524
commit
e1abccd829
1 changed files with 7 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import unittest
|
||||
|
||||
from django.test import TestCase
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
|
|
@ -71,6 +73,11 @@ class TestGetSearchPromotionsTemplateTag(TestCase):
|
|||
search_picks = list(get_search_promotions("root page"))
|
||||
self.assertEqual(search_picks, [pick])
|
||||
|
||||
@unittest.expectedFailure
|
||||
def test_get_search_promotions_with_none_query_string(self):
|
||||
search_picks = list(get_search_promotions(None))
|
||||
self.assertEqual(search_picks, [])
|
||||
|
||||
|
||||
class TestSearchPromotionsIndexView(TestCase, WagtailTestUtils):
|
||||
def setUp(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue