Skip to content

countProjects() raise 'Empty Response!' error, when no project exist #55

Closed
@lczub

Description

@lczub

with v0.6.1, countProjects() does not handle the special case "no project exist" .
Expectation is, that countProjects() returns 0 in this case.

Traceback (most recent call last):
  File "D:\Projekte\git\TestLink-API-Python-client\example\TestLinkExample.py", line 147, in <module>
    print("Number of Projects in TestLink: %s " % (myTestLink.countProjects()))
  File "D:\Projekte\git\TestLink-API-Python-client\src\testlink\testlinkapi.py", line 377, in countProjects
    projects=self.getProjects()
  File "D:\Projekte\git\TestLink-API-Python-client\src\testlink\testlinkdecorators.py", line 105, in wrapperAddDevKey
    return methodAPI(self, *argsPositional, **argsOptional)
  File "D:\Projekte\git\TestLink-API-Python-client\src\testlink\testlinkdecorators.py", line 93, in wrapperWithArgs
    *argsPositional, **argsOptional)
  File "D:\Projekte\git\TestLink-API-Python-client\src\testlink\testlinkapigeneric.py", line 1299, in callServerWithPosArgs
    self._checkResponse(response, methodNameAPI, argsOptional) 
  File "D:\Projekte\git\TestLink-API-Python-client\src\testlink\testlinkapigeneric.py", line 1527, in _checkResponse
    'Empty Response! ')
testlink.testlinkerrors.TLResponseError: Empty Response! 
getProjects({'devKey': '94cc922ff3a62291a7cb9c4adbb60501'})

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions