Skip to content

Commit

Permalink
Removed old cancellation api
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Feb 18, 2016
1 parent 8f71f4f commit bda23bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions openprocurement/tender/limited/tests/tender.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,10 +673,9 @@ def test_tender_status_change(self):
self.assertEqual(response.json['data']['status'], 'active')

# try to mark tender complete
response = self.app.patch_json('/tenders/{}?acc_token={}'.format(tender_id, owner_token), {'data': {'status': 'complete'}}, 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 tender status")
response = self.app.patch_json('/tenders/{}?acc_token={}'.format(tender_id, owner_token), {'data': {'status': 'complete'}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.json['data']['status'], 'active')

def test_single_award_tender(self):
# empty tenders listing
Expand Down

0 comments on commit bda23bc

Please sign in to comment.