[test] fix setting of base-url during test: override default_base_url, else we set it too late (after uiprops generation) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 17 Sep 2010 16:53:12 +0200
branchstable
changeset 6281 a013a68fe8ec
parent 6280 e220f8b85f88
child 6282 556b1b1a2c5a
[test] fix setting of base-url during test: override default_base_url, else we set it too late (after uiprops generation)
devtools/__init__.py
devtools/testlib.py
--- a/devtools/__init__.py	Fri Sep 17 12:34:03 2010 +0200
+++ b/devtools/__init__.py	Fri Sep 17 16:53:12 2010 +0200
@@ -183,6 +183,9 @@
     def available_languages(self, *args):
         return ('en', 'fr', 'de')
 
+    def default_base_url(self):
+        return BASE_URL
+
     def pyro_enabled(self):
         # but export PYRO_MULTITHREAD=0 or you get problems with sqlite and
         # threads
--- a/devtools/testlib.py	Fri Sep 17 12:34:03 2010 +0200
+++ b/devtools/testlib.py	Fri Sep 17 16:53:12 2010 +0200
@@ -226,7 +226,6 @@
         config.global_set_option('sender-name', 'cubicweb-test')
         config.global_set_option('sender-addr', 'cubicweb-test@logilab.fr')
         # web resources
-        config.global_set_option('base-url', devtools.BASE_URL)
         try:
             config.global_set_option('embed-allowed', re.compile('.*'))
         except: # not in server only configuration