changeset 4556:0c65fd71c7ad

fix tests, skip known broken tests
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 07 Feb 2009 13:58:10 +0100
parents 30ffb215bf6e
children cbb5881697c2
files MoinMoin/formatter/_tests/test_formatter.py jabberbot/xmppbot.py
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/_tests/test_formatter.py	Fri Feb 06 00:01:17 2009 +0100
+++ b/MoinMoin/formatter/_tests/test_formatter.py	Sat Feb 07 13:58:10 2009 +0100
@@ -14,6 +14,7 @@
 
 class TestFormatter:
     def testSyntaxReferenceDomXml(self):
+        py.test.skip("domxml <p> generation is broken")
         f_name = 'dom_xml'
         try:
             formatter = wikiutil.importPlugin(self.request.cfg, "formatter", f_name, "Formatter")
@@ -21,7 +22,7 @@
             pass
         else:
             print "Formatting using %r" % formatter
-            self.formatPage("SyntaxReference", formatter)
+            self.formatPage("HelpOnMoinWikiSyntax", formatter)
             print "Done."
 
     def testSyntaxReferenceDocBook(self):
@@ -57,7 +58,7 @@
                 pass
             else:
                 print "Formatting using %r" % formatter
-                self.formatPage("SyntaxReference", formatter)
+                self.formatPage("HelpOnMoinWikiSyntax", formatter)
                 print "Done."
 
     def formatPage(self, pagename, formatter):
@@ -68,6 +69,7 @@
         self.request.reset()
         page = Page(self.request, pagename, formatter=formatter)
         self.request.formatter = page.formatter = formatter(self.request)
+        self.request.page = page
         #page.formatter.setPage(page)
         #page.hilite_re = None
 
--- a/jabberbot/xmppbot.py	Fri Feb 06 00:01:17 2009 +0100
+++ b/jabberbot/xmppbot.py	Sat Feb 07 13:58:10 2009 +0100
@@ -419,7 +419,7 @@
         """
         # TODO: send as form if user-client supports it
         self.send_user_created_text(jid.as_unicode(), cmd_data)
-        
+
     def ask_for_subscription(self, jid):
         """Sends a <presence/> stanza with type="subscribe"