[Erp5-report] r12017 - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tests/busin...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jan 11 14:19:26 CET 2007


Author: aurel
Date: Thu Jan 11 14:19:23 2007
New Revision: 12017

URL: http://svn.erp5.org?rev=12017&view=rev
Log:
replace repository by the one for test to avoid having too many bt to choose
and set default repository again at end

Modified:
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/business_template_zuite/testDependenciesHandling.xml
    erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/BTZuite_reset.xml
    erp5/trunk/bt5/erp5_ui_test/bt/revision

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/business_template_zuite/testDependenciesHandling.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/business_template_zuite/testDependenciesHandling.xml?rev=12017&r1=12016&r2=12017&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/business_template_zuite/testDependenciesHandling.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/business_template_zuite/testDependenciesHandling.xml Thu Jan 11 14:19:23 2007
@@ -206,6 +206,16 @@
 \t<td>Business Template test_xhtml_style, test_web installed</td>\n
 \t<td></td>\n
 </tr>\n
+<tr>\n
+  <td>open</td>\n
+  <td tal:content="string: ${here/portal_url}/foo_module/BTZuite_reset?end=1"/>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>assertTextPresent</td>\n
+  <td>Reset Successfully.</td>\n
+  <td></td>\n
+</tr>\n
 </body>\n
 </html>\n
 

Modified: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/BTZuite_reset.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/BTZuite_reset.xml?rev=12017&r1=12016&r2=12017&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/BTZuite_reset.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/BTZuite_reset.xml Thu Jan 11 14:19:23 2007
@@ -74,16 +74,16 @@
   if bt.getTitle().startswith(\'test_\'):\n
     bt.uninstall()\n
 \n
-is_test_repos_present = False\n
-repository_list = context.portal_templates.getRepositoryList()\n
-for repository in repository_list:\n
-  if repository.startswith(\'http://torrent.erp5.org/dists/snapshot/test_bt5\'):\n
-    is_test_repos_present = True\n
-    break\n
+# modify repository list information\n
+if end:\n
+  # set default repository list when test is finished\n
+  repository_list = [\'http://torrent.erp5.org/dists/snapshot/bt5\']\n
+else:\n
+  # just used test repository to not display to many bt and thus have listbox\n
+  # with many pages\n
+  repository_list = [\'http://torrent.erp5.org/dists/snapshot/test_bt5\']\n
 \n
-if not is_test_repos_present:\n
-  repository_list.append(\'http://torrent.erp5.org/dists/snapshot/test_bt5\')\n
-  context.portal_templates.updateRepositoryBusinessTemplateList(repository_list)\n
+context.portal_templates.updateRepositoryBusinessTemplateList(repository_list)\n
 \n
 return \'Reset Successfully.\'\n
 </string> </value>
@@ -108,7 +108,7 @@
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string></string> </value>
+            <value> <string>end=0</string> </value>
         </item>
         <item>
             <key> <string>errors</string> </key>
@@ -128,22 +128,19 @@
                   <dictionary>
                     <item>
                         <key> <string>co_argcount</string> </key>
-                        <value> <int>0</int> </value>
+                        <value> <int>1</int> </value>
                     </item>
                     <item>
                         <key> <string>co_varnames</string> </key>
                         <value>
                           <tuple>
+                            <string>end</string>
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>bt_list</string>
                             <string>_getiter_</string>
                             <string>bt</string>
-                            <string>False</string>
-                            <string>is_test_repos_present</string>
                             <string>repository_list</string>
-                            <string>repository</string>
-                            <string>True</string>
                           </tuple>
                         </value>
                     </item>
@@ -155,7 +152,9 @@
         <item>
             <key> <string>func_defaults</string> </key>
             <value>
-              <none/>
+              <tuple>
+                <int>0</int>
+              </tuple>
             </value>
         </item>
         <item>

Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=12017&r1=12016&r2=12017&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision Thu Jan 11 14:19:23 2007
@@ -1,1 +1,1 @@
-149
+152




More information about the Erp5-report mailing list