From ed142a14b2fc7dc1ad05000049ac2547770431fd Mon Sep 17 00:00:00 2001 From: john rusnak Date: Thu, 12 Oct 2017 13:04:47 -0700 Subject: [PATCH] Add api to abort a test run --- testdroid/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testdroid/__init__.py b/testdroid/__init__.py index 4f5484f..c7375b7 100755 --- a/testdroid/__init__.py +++ b/testdroid/__init__.py @@ -542,6 +542,11 @@ def print_project_test_runs(self, project_id, limit=0): def get_test_run(self, project_id, test_run_id): return self.get("me/projects/%s/runs/%s" % (project_id, test_run_id)) + """Abort a test run + """ + def abort_test_run(self, project_id, test_run_id): + return self.post("me/projects/%s/runs/%s/abort" % (project_id, test_run_id)) + """ Return device runs for a project """ def get_device_runs(self, project_id, test_run_id, limit=0):