Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/a276011822912330_update_award_docs'
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Feb 22, 2017
2 parents 0a44dca + cffb059 commit a0d8a8b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,14 +1011,6 @@ def test_award_complaints(self):
self.assertEqual(response.status, '200 OK')

self.app.authorization = ('Basic', ('broker', ''))

with open('docs/source/tutorial/award-complaint-satisfied-resolving.http', 'w') as self.app.file_obj:
response = self.app.patch_json('/tenders/{}/awards/{}?acc_token={}'.format(self.tender_id, award_id, owner_token), {"data": {
"status": "cancelled"
}})
self.assertEqual(response.status, '200 OK')
new_award_id = response.headers['Location'][-32:]

with open('docs/source/tutorial/award-complaint-resolved.http', 'w') as self.app.file_obj:
response = self.app.patch_json('/tenders/{}/awards/{}/complaints/{}?acc_token={}'.format(self.tender_id, award_id, complaint1_id, owner_token), {"data": {
"tendererAction": "Умови виправлено, вибір переможня буде розгянуто повторно",
Expand All @@ -1042,6 +1034,13 @@ def test_award_complaints(self):
self.assertEqual(response.status, '200 OK')

self.app.authorization = ('Basic', ('broker', ''))
with open('docs/source/tutorial/award-complaint-satisfied-resolving.http', 'w') as self.app.file_obj:
response = self.app.patch_json('/tenders/{}/awards/{}?acc_token={}'.format(self.tender_id, award_id, owner_token), {"data": {
"status": "cancelled"
}})
self.assertEqual(response.status, '200 OK')
new_award_id = response.headers['Location'][-32:]

award_id = new_award_id
self.app.patch_json('/tenders/{}/awards/{}?acc_token={}'.format(self.tender_id, award_id, owner_token), {"data": {"status": "active", "qualified": True, "eligible": True}})
self.assertEqual(response.status, '200 OK')
Expand Down

0 comments on commit a0d8a8b

Please sign in to comment.