[test] we actually still need the set_option on base-url for multi-sources (eg repo) configuration stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 23 Sep 2010 10:47:54 +0200
branchstable
changeset 6316 51aa84c40a71
parent 6315 8ca3ee849bee
child 6317 0d4dd5f6f05c
[test] we actually still need the set_option on base-url for multi-sources (eg repo) configuration
devtools/testlib.py
--- a/devtools/testlib.py	Thu Sep 23 10:46:59 2010 +0200
+++ b/devtools/testlib.py	Thu Sep 23 10:47:54 2010 +0200
@@ -46,7 +46,7 @@
 from cubicweb.web import Redirect, application
 from cubicweb.server.session import security_enabled
 from cubicweb.devtools import SYSTEM_ENTITIES, SYSTEM_RELATIONS, VIEW_VALIDATORS
-from cubicweb.devtools import fake, htmlparser
+from cubicweb.devtools import BASE_URL, fake, htmlparser
 from cubicweb.utils import json
 
 # low-level utilities ##########################################################
@@ -225,6 +225,7 @@
         config.global_set_option('default-dest-addrs', send_to)
         config.global_set_option('sender-name', 'cubicweb-test')
         config.global_set_option('sender-addr', 'cubicweb-test@logilab.fr')
+        config.global_set_option('base-url', BASE_URL)
         # web resources
         try:
             config.global_set_option('embed-allowed', re.compile('.*'))