Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita6479eb

Browse files
author
Alex Schworer
committed
Add test forJob.finish
1 parent38d1e4e commita6479eb

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+
deftest_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)

[8]ページ先頭

©2009-2025 Movatter.jp