[test] fix setting of base-url during test: override default_base_url, else we set it too late (after uiprops generation)
--- 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