Skip to content

Commit

Permalink
fixed state change tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Feb 19, 2016
1 parent ae9e3b8 commit c5a0ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openprocurement/tender/openua/tests/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_patch_tender_contract(self):
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']["status"], "active")

response = self.app.patch_json('/tenders/{}/contracts/{}'.format(self.tender_id, contract['id']), {"data": {"status": "active"}}, status=403)
response = self.app.patch_json('/tenders/{}/contracts/{}'.format(self.tender_id, contract['id']), {"data": {"status": "pending"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't update contract status")
Expand Down

0 comments on commit c5a0ba5

Please sign in to comment.