wiki renderer web-service for testing

1 view
Skip to first unread message

anatoly techtonik

unread,
Apr 27, 2008, 11:08:57 AM4/27/08
to Trac Development
Hello, everybody

Is it possible to expose wiki renderer interface for Trac into POST
web-service? I'll be grateful if anybody with core knowledge could
provide a small patch. It will be useful for unit testing of renderer
and in my specific case for running test for a small wiki converter.

Thanks.

Tim Hatch

unread,
Apr 27, 2008, 5:42:43 PM4/27/08
to trac...@googlegroups.com

The rendered result depends on the environment url and what the
environment contains. If you don't mind downloading Trac alongside
your converter, you can use an EnvironmentStub (see WikiTestCase in
trac/wiki/tests/formatter.py) + wiki helper methods (see the end of
trac/wiki/formatter.py) and have more control over how they're
configured.

Tim

Reply all
Reply to author
Forward
0 new messages