Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ compatibility)

##### Test Cycles
- `GET` test cycle by test cycle id
- `DELETE` test cycle by test cycle id

##### Test Plans
- `POST` a new test cycle to a test plan by test plan id
Expand Down
18 changes: 18 additions & 0 deletions py_jama_rest_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,24 @@ def delete_relationships(self, relationship_id):
JamaClient.__handle_response_status(response)
return response.status_code

def delete_test_cycle(self, test_cycle_id):
"""
This method will delete a test cycle specified by the test cycle id.

Args:
test_cycle_id: the api id of the test cycle to delete

Returns: The success status code.
"""
resource_path = 'testcycles/' + str(test_cycle_id)
try:
response = self.__core.delete(resource_path)
except CoreException as err:
py_jama_rest_client_logger.error(err)
raise APIException(str(err))
JamaClient.__handle_response_status(response)
return response.status_code

def patch_item(self, item_id, patches):
"""
This method will patch an item.
Expand Down