# HG changeset patch # User Sylvain Thénault # Date 1284735192 -7200 # Node ID a013a68fe8ecbacd03b6c555c8a4aba018984060 # Parent e220f8b85f888d14fa67c2b3fe1d7322f18a32e7 [test] fix setting of base-url during test: override default_base_url, else we set it too late (after uiprops generation) diff -r e220f8b85f88 -r a013a68fe8ec devtools/__init__.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 diff -r e220f8b85f88 -r a013a68fe8ec devtools/testlib.py --- 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