diff MoinMoin/conftest.py @ 2175:7a3f7ac4f6e0

fix formatter setup for tests, skip broken dom_xml formatter test, add small/big to text_xml formatter (ported from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 20 Jun 2007 14:56:00 +0200
parents c4cbabe9a02d
children b0031a34f96d
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Wed Jun 20 14:37:58 2007 +0200
+++ b/MoinMoin/conftest.py	Wed Jun 20 14:56:00 2007 +0200
@@ -74,12 +74,15 @@
 def init_test_request(static_state=[False]):
     from MoinMoin.request import CLI
     from MoinMoin.user import User
+    from MoinMoin.formatter.text_html import Formatter as HtmlFormatter
     if not static_state[0]:
         maketestwiki.run(True)
         static_state[0] = True
     request = CLI.Request()
     request.form = request.args = request.setup_args()
     request.user = User(request)
+    request.html_formatter = HtmlFormatter(request)
+    request.formatter = request.html_formatter
     return request