Skip to content
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

Add func delete_test_run #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
11 changes: 11 additions & 0 deletions adaptavist/adaptavist.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,18 @@ def clone_test_run(self, test_run_key: str, test_run_name: str = "", **kwargs: A
self.edit_test_plan(test_plan_key=test_plan["key"], test_runs=[key])

return key

def delete_test_run(self, test_run_key: str) -> bool:
"""
Delete given test run.

:param test_run_key: Test run key to be deleted. ex. "TEST-R2"
:returns: True if succeeded, False if not
"""
request_url = f"{self._adaptavist_api_url}/testrun/{test_run_key}"
self._logger.debug("Deleting test case %s)", test_run_key)
return bool(self._delete(request_url))

def get_test_execution_results(self, last_result_only: bool = True) -> List[Dict[str, Any]]:
"""
Get all test results.
Expand Down