Commit 4c05f59a authored by Jérome Perrin's avatar Jérome Perrin

2008-06-16 jerome

* Stop calling BTZuite_setPreference in test and add a docstring to explain its purpose.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21634 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d45c78dc
...@@ -63,16 +63,6 @@ ...@@ -63,16 +63,6 @@
<tr><td rowspan="1" colspan="3">Test Access Tab Front Page Preference</td></tr>\n <tr><td rowspan="1" colspan="3">Test Access Tab Front Page Preference</td></tr>\n
</thead><tbody>\n </thead><tbody>\n
<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n <tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n
<tr>\n
<td>open</td>\n
<td>${base_url}/portal_preferences/BTZuite_setPreference</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Set Preference Successfully.</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
<td>${base_url}/portal_preferences/ListBoxZuite_waitForActivities</td>\n <td>${base_url}/portal_preferences/ListBoxZuite_waitForActivities</td>\n
......
...@@ -65,16 +65,16 @@ ...@@ -65,16 +65,16 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># set subversion working copy list and enable preference\n <value> <string>"""Set subversion working copy list and enable preference.\n
if working_copy_list:\n \n
list = tuple(working_copy_list.split(\',\'))\n This script is called by Products.ERP5Type.tests.runFunctionalTest to set\n
else:\n subversion working copy paths. It\'s not meant to be called by zelenium tests.\n
list = (\'/var/lib/zope/unit_test/svn/bt5\', \'/var/lib/zope/unit_test/Products/ERP5/bootstrap\',)\n """\n
\n \n
pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n pref = getattr(context.portal_preferences, "erp5_ui_test_preference", None)\n
if pref is None:\n if pref is None:\n
pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", portal_type="Preference")\n pref = context.portal_preferences.newContent(id="erp5_ui_test_preference", portal_type="Preference")\n
pref.setPreferredSubversionWorkingCopyList(list)\n pref.setPreferredSubversionWorkingCopyList(tuple(working_copy_list.split(\',\')))\n
pref.enable()\n pref.enable()\n
\n \n
return \'Set Preference Successfully.\'\n return \'Set Preference Successfully.\'\n
...@@ -100,7 +100,7 @@ return \'Set Preference Successfully.\'\n ...@@ -100,7 +100,7 @@ return \'Set Preference Successfully.\'\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>working_copy_list=\'\'</string> </value> <value> <string>working_copy_list</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -127,13 +127,12 @@ return \'Set Preference Successfully.\'\n ...@@ -127,13 +127,12 @@ return \'Set Preference Successfully.\'\n
<value> <value>
<tuple> <tuple>
<string>working_copy_list</string> <string>working_copy_list</string>
<string>tuple</string>
<string>_getattr_</string>
<string>list</string>
<string>getattr</string> <string>getattr</string>
<string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string> <string>None</string>
<string>pref</string> <string>pref</string>
<string>tuple</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -145,9 +144,7 @@ return \'Set Preference Successfully.\'\n ...@@ -145,9 +144,7 @@ return \'Set Preference Successfully.\'\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <none/>
<string></string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
2008-06-16 jerome
* Stop calling BTZuite_setPreference in test and add a docstring to explain its purpose.
2008-06-16 yusei 2008-06-16 yusei
* Update listbox_zuite/testRedirect for recent changes of domain tree rendering. * Update listbox_zuite/testRedirect for recent changes of domain tree rendering.
......
361 362
\ No newline at end of file \ No newline at end of file
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