devtools/testlib.py
branchstable
changeset 6316 51aa84c40a71
parent 6281 a013a68fe8ec
child 6333 e3994fcc21c3
child 6346 1a968e545e4e
--- 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('.*'))