anatoly techtonik | 27 Apr 17:08

[Trac-dev] wiki renderer web-service for testing


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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com
To unsubscribe from this group, send email to trac-dev-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Tim Hatch | 27 Apr 23:42

[Trac-dev] Re: wiki renderer web-service for testing


> 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.

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com
To unsubscribe from this group, send email to trac-dev-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane