comparison MoinMoin/formatter/_tests/test_formatter.py @ 3319:2d7693b7caf6

syntax reference was renamed! do same in tests, this breaks docbook
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 19 Mar 2008 02:05:39 +0100
parents 49e9aa06a3da
children 0e3c82dd2109 0c65fd71c7ad
comparison
equal deleted inserted replaced
3318:49e9aa06a3da 3319:2d7693b7caf6
23 print "Formatting using %r" % formatter 23 print "Formatting using %r" % formatter
24 self.formatPage("SyntaxReference", formatter) 24 self.formatPage("SyntaxReference", formatter)
25 print "Done." 25 print "Done."
26 26
27 def testSyntaxReferenceDocBook(self): 27 def testSyntaxReferenceDocBook(self):
28 py.test.skip("docbook is broken")
28 try: 29 try:
29 from xml.dom import getDOMImplementation 30 from xml.dom import getDOMImplementation
30 dom = getDOMImplementation("4DOM") 31 dom = getDOMImplementation("4DOM")
31 except ImportError: 32 except ImportError:
32 # if we don't have 4suite installed, the docbook formatter would just raise an exception 33 # if we don't have 4suite installed, the docbook formatter would just raise an exception
37 formatter = wikiutil.importPlugin(self.request.cfg, "formatter", f_name, "Formatter") 38 formatter = wikiutil.importPlugin(self.request.cfg, "formatter", f_name, "Formatter")
38 except wikiutil.PluginAttributeError: 39 except wikiutil.PluginAttributeError:
39 pass 40 pass
40 else: 41 else:
41 print "Formatting using %r" % formatter 42 print "Formatting using %r" % formatter
42 self.formatPage("SyntaxReference", formatter) 43 self.formatPage("HelpOnMoinWikiSyntax", formatter)
43 print "Done." 44 print "Done."
44 45
45 def testSyntaxReferenceOthers(self): 46 def testSyntaxReferenceOthers(self):
46 formatters = wikiutil.getPlugins("formatter", self.request.cfg) 47 formatters = wikiutil.getPlugins("formatter", self.request.cfg)
47 48