Skip to content

Commit a6479eb

Browse files
author
Alex Schworer
committed
Add test for Job.finish
1 parent 38d1e4e commit a6479eb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_jobs.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ def test_job_list_limit(self, get):
6868
self.assertEquals(resp.code, 200)
6969
self.assertEquals(len(resp.body), 1)
7070

71+
@patch("requests.Session.put")
72+
def test_job_finish(self, put):
73+
put.return_value = load_response(204)
74+
75+
resp = self.zen.job.finish(99999)
76+
self.assertEquals(resp.code, 204)
77+
7178
if __name__ == "__main__":
7279
unittest.main()
7380

0 commit comments

Comments
 (0)