[Scodoc-devel] [SVN] Scolar : [1201] Minor changes for tests.

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Mar 12 Mar 22:13:30 CET 2013


Une pièce jointe HTML a été nettoyée...
URL: <https://www-rt.iutv.univ-paris13.fr/pipermail/scodoc-devel/attachments/20130312/1173a324/attachment.html>
-------------- section suivante --------------
Modified: trunk/sco_formsemestre_validation.py
===================================================================
--- trunk/sco_formsemestre_validation.py	2013-03-10 08:56:01 UTC (rev 1200)
+++ trunk/sco_formsemestre_validation.py	2013-03-12 21:13:30 UTC (rev 1201)
@@ -578,7 +578,7 @@
     H.append('<tr><td><input type="checkbox" name="assidu" checked="checked">assidu</input></td></tr>')
     
     H.append("""</table>
-    <input type="submit" value="Valider d\xE9cision manuelle"/>
+    <input type="submit" name="formvalidmanu_submit" value="Valider d\xE9cision manuelle"/>
     <span style="padding-left: 5em;"><a href="formsemestre_validation_suppress_etud?etudid=%s&formsemestre_id=%s" class="stdlink">Supprimer d\xE9cision existante</a></span>
     </form>
     """ % (etudid, formsemestre_id))

Modified: trunk/tests/README.txt
===================================================================
--- trunk/tests/README.txt	2013-03-10 08:56:01 UTC (rev 1200)
+++ trunk/tests/README.txt	2013-03-12 21:13:30 UTC (rev 1201)
@@ -3,14 +3,16 @@
 http://splinter.cobrateam.info/docs/tutorial.html
 
 Installation de Splinter:
+
+apt-get install python-dev
 apt-get install libxslt-dev
 apt-get install libxml2-dev
-/usr/bin/easy_install splinter
+curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
+python get-pip.py
 /usr/bin/easy_install zope.testbrowser
 /usr/bin/easy_install cssselect       
 
+
 J'ai du hacker /usr/local/lib/python2.6/dist-packages/mechanize-0.2.5-py2.6.egg/mechanize/_mechanize.py
 ligne 218
 url = _rfc3986.urljoin(self._response.geturl()+'/', url)
-
-

Modified: trunk/tests/test-intensive-changes.py
===================================================================
--- trunk/tests/test-intensive-changes.py	2013-03-10 08:56:01 UTC (rev 1200)
+++ trunk/tests/test-intensive-changes.py	2013-03-12 21:13:30 UTC (rev 1201)
@@ -37,6 +37,7 @@
 def add_to_notes(increment):
     etudids = re.findall( r'name="note_(.*?)"', browser.html )[1:]
     note_max = float(re.search( r'notes sur ([0-9]+?)</span>\)', browser.html ).group(1))
+    print 'add_to_notes: %d etudiants' % len(etudids)
     for etudid in etudids:
         # essaie d'ajouter 1 à la note !
         old_val = browser.find_by_name('note_%s' % etudid).value


Plus d'informations sur la liste de diffusion Scodoc-devel