Dear all, I am in the process of writing macros in order to extends MoinMoin and avoids the addition of an external server for one of my applications. I am trying as much as I can to use Test Driven Development when writing code, but I have not find information regarding the testing of macros. I am especially interested in the mocking of the first parameter of macro.
Does such support exist? Am I supposed to use the _test_template.py from the MoinMoin sources? But then, what is the difference between the request and the macro objects? If it does not exists, could you provide me hints at how such a base test case class should behave in order for me to have an attempt at providing it? For the moment, I do not think of an alternative to the use of the twill framework in order to (a) deploy the macro to a wiki and (b) send HTTP requests in order to test the macro behavior. But, this approach cost more than "unit tests" in terms of setup and execution. Thanks a lot. Regards, r.m. -- Raphael Marvie, PhD http://www.lifl.fr/~marvie/ Maître de Conférences / Associate Professor @ LIFL -- USTL Directeur du Master Informatique Professionnel spécialité IAGL Head of Master's in Software Engineering +33 3 20 33 59 51 ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user