You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python module to use Testspace API and client. Provides a python object that can manage the following Testspace items: url, token, project name and space name. It also provides functions to push results and handle most common API requests.
4
+
5
+
## Usage
6
+
To use the module the items listed below are needed.
Project and Space names do not have to be set on instantiation of the Testspace object and can be passed as parameters to any function call that requires them. They can also be passed into any of the functions to override, but not update the objects stored values, otherwise the stored values for project and space will be used.
Provides a python wrapper to use the [Testspace client](https://help.testspace.com/docs/reference/testspace-client) for pushing content to [Testspace](https://www.testspace.com/). Optional parameters to this function are available to provide the name of file to push, name of the result set and how.
The following Testspace client [options](https://help.testspace.com/docs/reference/testspace-client#push) are also supported as parameters to the push function.
31
+
32
+
|Client Option | Function Parameter |
33
+
|---|---|
34
+
|build-url|build_url|
35
+
|repo|repo|
36
+
|link|link|
37
+
|message|message|
38
+
39
+
40
+
## Testspace API
41
+
Provides a python wrapper for the [Testspace API](https://help.testspace.com/docs/reference/web-api). The available functions mirror the structure of the documented API endpoints, with GET, POST, PATCH, and DELETE options available as appropriate for the endpoint. Where names in addition to id's are supported in the API, they can be used interchangably here as well. All functions return any JSON response as a result of the request, see Testspace API [help](https://help.testspace.com/docs/reference/web-api) for details of each response. For any Testspace API that returns a list, the page size default limit of 30 is used, for any of these function the `limit` parameter can be added with an integer value for the desired maximum number of returned items. All requests are checked with raise_for_status with the expectation that any exceptions will be appropriately handled by user of the module.
0 commit comments