gebi / ooopy

OOoPy is a library in Python for inspecting, creating or modifying OpenOffice.org documents. It uses the existing ElementTree XML library by for manipulation of the OOo XML.
6 stars 1 forks source link

file ooopy/ooopy/Transformer.py #6

Closed WeeSee closed 6 years ago

WeeSee commented 6 years ago

I do not have python experience but in file

ooopy/ooopy/Transformer.py

in class Transformer there are lots of sample data as:

    firstname : Erika
    lastname : Nobody
    firstname : Eric
    lastname : Wizard
    firstname : Hugo
    lastname : Testman
    firstname : Erika

Why? This should be eliminated in a tool for general use.

gebi commented 6 years ago

yes it looks strange, but i don't want to remove something that does not harm anyone and might server as documentation as a deviation from upstream.

gebi commented 6 years ago

Ah... the original author used doctests, which means basically all unit tests are embedded in doc strings, thats why there is so much sample data and code embedded inside the doc strings...

running the tests someone has to wonder why anything in this projects works at all...