You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by rj...@apache.org on 2013/09/22 08:17:12 UTC

svn commit: r1525323 - /bloodhound/trunk/bloodhound_search/bhsearch/tests/web_ui.py

Author: rjollos
Date: Sun Sep 22 06:17:12 2013
New Revision: 1525323

URL: http://svn.apache.org/r1525323
Log:
0.8dev: `test_product_ticket_href` in `bhsearch.tests.web_ui.WebUiTestCaseWithWhoosh` was failing because `MockProductEnvironment` didn't have the methods `abs_href` and  `resolve_href`.

Modified:
    bloodhound/trunk/bloodhound_search/bhsearch/tests/web_ui.py

Modified: bloodhound/trunk/bloodhound_search/bhsearch/tests/web_ui.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_search/bhsearch/tests/web_ui.py?rev=1525323&r1=1525322&r2=1525323&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_search/bhsearch/tests/web_ui.py (original)
+++ bloodhound/trunk/bloodhound_search/bhsearch/tests/web_ui.py Sun Sep 22 06:17:12 2013
@@ -65,6 +65,12 @@ class WebUiTestCaseWithWhoosh(BaseBloodh
             def href(self, *args):
                 return ('/main/products/%s/' % self.product) + '/'.join(args)
 
+            def abs_href(self, *args):
+                return 'http://example.org' + self.href(*args)
+
+            from multiproduct.env import ProductEnvironment
+            resolve_href = ProductEnvironment.resolve_href
+
         web_ui.ProductEnvironment = MockProductEnvironment
 
     def tearDown(self):