RedHatQE / pylero

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

Baseline object #70

Closed brian12559 closed 2 years ago

brian12559 commented 2 years ago

I don't think I have ever used the Baseline object before with pylarion nor pylero, so I am not sure that this works or has ever worked. I am trying to do this:

Baseline("Polarion", 'base_21R1P1', 'desc', '10388676') but its not letting me. Its return this: Baseline("Polarion", 'base_21R1P1', 'desc', '10388676') TypeError: init() takes at most 3 arguments (5 given)

I am able to do this via the WSDL: tracker.service.createBaseline('Polarion', 'base2_21R1P1', 'desc', '10388676')

leelavg commented 2 years ago

@brian12559, I believe the correct way is to use create classmethod as per code.

brian12559 commented 2 years ago

awesome...my bad. should have known that. So this works: test = [] Baseline.create("Polarion", 'base_21R1P1', 'desc', test) but this does not Baseline.create("Polarion", 'base_21R1P1', 'desc') revision number is optional as is desc. Shouldn't I be able to just leave it off? thanks

leelavg commented 2 years ago
brian12559 commented 2 years ago

None works!