Skip to content

TestlinkAPIClient does not accept optional argument 'transport' for proxy configuration #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lczub opened this issue Jun 6, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@lczub
Copy link
Owner

lczub commented Jun 6, 2015

proxy configuration, introduced with #36, only works with api class TestlinkAPIGeneric
the api class TestlinkAPIClient does not accept optional arguments like transport.

tl_helper = TestLinkHelper(proxy='PROXY-71')
myTestLink = tl_helper.connect(TestlinkAPIClient)

Traceback (most recent call last):
  File "D:\Projekte\Testlink-Python-API\Issues\20150601_issue55_getProjects\getProjects_from_demo.py", line 42, in <module>
    myTestLink = tl_helper.connect(TestlinkAPIClient)
  File "D:\Projekte\git\TestLink-API-Python-client\src\testlink\testlinkhelper.py", line 143, in connect
    return tl_api_class(self._server_url, self._devkey, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'transport'

lczub pushed a commit that referenced this issue Jun 6, 2015
also online unit test for getProjects() marked as "may fail" cause the
used tl demo server returns currently invalid xml responses
@lczub lczub self-assigned this Jun 6, 2015
@lczub lczub added this to the v0.6.2 milestone Jun 6, 2015
@lczub lczub added the bug label Jun 6, 2015
@lczub
Copy link
Owner Author

lczub commented Jun 6, 2015

Travis build passed for Py27 - Py34, but failed for Py26.
Seams, that the new unit tests test_connect_with_proxy needs a special handling for Py26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant