RedHatQE / pylero

Python wrapper for the Polarion WSDL API
https://redhatqe.github.io/pylero/
MIT License
37 stars 25 forks source link

conditionally import TestCase in TestRun module #169

Closed leelavg closed 9 months ago

leelavg commented 9 months ago

this pr is almost a revert for #132, after much deliberation and trial & error I believe solving the immediate issue of unblocking tagging release is important over providing a generic interface for the testrun to work w/ server instance specific workitems while creating incident reports.

other tried flows include creating a meta class (or instantiate workitem class) when testcase is referenced and adding it to globals and reuse wherever required, however this also builds on we knowing that there'll be a testcase item on the server instance.

initial report suggests failure in imports of testrun and if those users tried to update their similar testcase item it'll fail while generating report and conditionally importing testcase seems much better rather than trying to re-instate older working behavior with only using _WorkItem type

fixes: #134

waynesun09 commented 9 months ago

LGTM Test have passed locally, thanks!