lczub / TestLink-API-Python-client

A Python client to use the TestLink API
105 stars 63 forks source link

helper method .whatArgs(apiMethodName) #8

Closed lczub closed 10 years ago

lczub commented 11 years ago

7 implements in v0.4.5-beta - testlinkapigeneric.py the creation of API methods via decorators.

This reduces the copy&paste duplicated code blocks, but maybe it is not clear readable, which args of an API methods is expected as "positional" argument and which as "optional".

More confusing might be, that it is possible to change the configuration of positional argument like it has been done in "TestlinkAPIClient._changePositionalArgConfig()" (see v0.4.5-beta - testlinkapi.py )

To reduce this confusion, a helper method like ".whatArgs(apiMethodName)" should be implemented, which prompts the current argument configuration for a specific API method