From a85cc1616f09d8e977c6277622d2c01ba29e5ae7 Mon Sep 17 00:00:00 2001 From: Tadas Dailyda Date: Tue, 16 Feb 2016 20:23:40 +0200 Subject: [PATCH] remove defunct test --- tests/test_search.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/test_search.py b/tests/test_search.py index 779ceec..8d518ae 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -35,25 +35,6 @@ class BlogIndexingTests(BaseTest): self.assertEqual(post.get_absolute_url(), indexed['url']) self.assertEqual(post.date_published, indexed['pub_date']) - def test_blog_post_is_indexed_using_update_object(self): - """This tests the indexing path way used by the RealTimeSignalProcessor""" - post = self._get_post(self._post_data[0]['en']) - post = self._get_post(self._post_data[0]['it'], post, 'it') - post.tags.add('a tag') - add_plugin(post.content, 'TextPlugin', language='en', body='test body') - - index = self.get_post_index() - index.update_object(post, using=DEFAULT_ALIAS) - index = self.get_post_index() - indexed = index.prepared_data - - self.assertEqual(post.get_title(), indexed['title']) - self.assertEqual(post.get_description(), indexed['description']) - self.assertEqual(post.get_tags(), indexed['tags']) - self.assertEqual(self.sample_text, indexed['text']) - self.assertEqual(post.get_absolute_url(), indexed['url']) - self.assertEqual(post.date_published, indexed['pub_date']) - def test_searchqueryset(self): posts = self.get_posts() all_results = SearchQuerySet().models(Post)