On 03.07.09 08:23, Michael Mulich wrote: > I am writing a script that can be used to export (and eventually > import) all/some of the content in a Plone site to comma separated > values (CSV) files.[1] My question is, what would be the best > approach for testing the package? The package requires a Plone site, > but is not part of a Plone site since it is a script outside of Plone. > First: why are you trying to reinvent wheels? There is for example ArcheCSV for importing content into Plone using CSV. There is GSXML for exporting/importing content based on XML. I blogged a while ago using an ini-file approach for doing content migrations..
Second: personally I would not care much about tests for this particular use case because such test will never replace any real tests with real software when it comes to import those later into other systems. Takes three different spreadsheet application and all will behave slightly differently..... -aj
begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:[email protected] title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard
_______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
