Commit ff7e10d0 authored by Aurel's avatar Aurel

set variable current_app later as the first app is closed at the end

of setupERP5Site and thus giving a wrong REQUEST


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11742 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ed58da2
...@@ -305,6 +305,8 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -305,6 +305,8 @@ class ERP5TypeTestCase(PortalTestCase):
quiet=install_bt5_quiet, quiet=install_bt5_quiet,
hot_reindexing=hot_reindexing) hot_reindexing=hot_reindexing)
PortalTestCase.setUp(self) PortalTestCase.setUp(self)
global current_app
current_app = self.app
self._updateConnectionStrings() self._updateConnectionStrings()
self._recreateCatalog() self._recreateCatalog()
...@@ -470,8 +472,6 @@ def setupERP5Site( business_template_list=(), ...@@ -470,8 +472,6 @@ def setupERP5Site( business_template_list=(),
try: try:
if app is None: if app is None:
app = ZopeTestCase.app() app = ZopeTestCase.app()
global current_app
current_app = app
if not hasattr(aq_base(app), portal_name): if not hasattr(aq_base(app), portal_name):
try: try:
_start = time.time() _start = time.time()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment