예제 #1
0
 def test_update_request(self):
     story_request = ZenRequest("fake_key").projects(12).stories()
     responses.add(responses.PUT,
                   "https://agilezen.com/api/v1/projects/12/stories/",
                   content_type="application/json",
                   status=200,
                   body="{}")
     story_request.update(status="blocked", blocked_reason="Why not")
예제 #2
0
 def test_update_phase(self):
     phase_request = ZenRequest("fake_key").projects(12).phases()
     update_request = phase_request.update("name", "description", 1, 12)
     responses.add(responses.PUT,
                   "https://agilezen.com/api/v1/projects/12/phases/",
                   content_type="application/json", status=200, body="{}")
     update_request.send()
예제 #3
0
 def test_update_phase(self):
     phase_request = ZenRequest("fake_key").projects(12).phases()
     update_request = phase_request.update("name", "description", 1, 12)
     responses.add(responses.PUT,
                   "https://agilezen.com/api/v1/projects/12/phases/",
                   content_type="application/json",
                   status=200,
                   body="{}")
     update_request.send()
예제 #4
0
 def test_update_request(self):
     story_request = ZenRequest("fake_key").projects(12).stories()
     responses.add(responses.PUT,
                   "https://agilezen.com/api/v1/projects/12/stories/",
                   content_type="application/json", status=200, body="{}")
     story_request.update(status="blocked", blocked_reason="Why not")