Commit 158a7943 authored by Vincent Pelletier's avatar Vincent Pelletier

PATH_INFO is now automaticaly set by ActivityTool when needed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20940 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aae2abf9
...@@ -2934,8 +2934,6 @@ class TestCMFActivity(ERP5TypeTestCase): ...@@ -2934,8 +2934,6 @@ class TestCMFActivity(ERP5TypeTestCase):
Organisation.translationTest = translationTest Organisation.translationTest = translationTest
try: try:
REQUEST = organisation.REQUEST REQUEST = organisation.REQUEST
# PATH_INFO is only missing in unit tests
REQUEST.environ['PATH_INFO'] = '/Control_Panel/timer_service/process_timer'
# Simulate what a browser would have sent to Zope # Simulate what a browser would have sent to Zope
REQUEST.environ['HTTP_ACCEPT_LANGUAGE'] = LANGUAGE REQUEST.environ['HTTP_ACCEPT_LANGUAGE'] = LANGUAGE
organisation.activate(activity=activity).translationTest() organisation.activate(activity=activity).translationTest()
......
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