jesper-raemaekers / python-polarion

A Python package to access the Polarion WSDL API.
MIT License
57 stars 35 forks source link

Documents support #38

Closed Futsch1 closed 2 years ago

Futsch1 commented 3 years ago

Hi Jesper,

this is a new pull request to directly merge into main with a cleaned history (previously, I had messed something up during a rebase).

I have created a first support for documents and reusing them. I have added tests, they work in my Polarion instance (and do not need any preconditions I suppose). I have made some quality-of-life changes to some modules, I hope you do not mind (fixing some formatting issues, removing unused imports and improving bool and None comparisons). If you disagree, I can reverse those changes or create a separate PR for this.

Since the comment function is shared between documents and work items, I have moved it into a new module, comments.py.

I have also cleaned up requirements.txt and removed all seemingly unrelated packages, or was there a reason I overlooked why these packages are there?

Apart from this, I tried to match your style and naming conventions and your general approaches as good as possible.