Skip to content

Commit

Permalink
Merge pull request #72 from gorserg/check_number_qualifications
Browse files Browse the repository at this point in the history
Add check_initial_bids_count when set stand-still
  • Loading branch information
kroman0 committed Sep 26, 2016
2 parents 7e4db16 + 5607d62 commit 604ba51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def test_multiple_bidders_tender(self):
'tenderers': [bidder_data], "value": {"amount": 499}}})
bid_id = response.json['data']['id']
bid_token = response.json['access']['token']
bidder_data['identifier']['id'] = u"00037258"
bidder_data['identifier']['id'] = u"00037259"
response = self.app.post_json('/tenders/{}/bids'.format(tender_id),
{'data': {'selfEligible': True, 'selfQualified': True,
'tenderers': [bidder_data], "value": {"amount": 498}}})
Expand Down Expand Up @@ -1275,11 +1275,11 @@ def test_multiple_bidders_tender(self):
response = self.app.patch_json('/tenders/{}'.format(tender_id), {"data": {"id": tender_id}})
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json['data']['status'], "active.pre-qualification")
# reject third bid
# approve third bid
self.app.authorization = ('Basic', ('broker', ''))
response = self.app.patch_json(
'/tenders/{}/qualifications/{}?acc_token={}'.format(tender_id, qualifications[2]['id'], tender_owner_token),
{"data": {"status": "unsuccessful"}})
{"data": {"status": "active", "qualified": True, "eligible": True}})
self.assertEqual(response.status, "200 OK")
# switch to next status
response = self.app.patch_json('/tenders/{}?acc_token={}'.format(tender_id, tender_owner_token),
Expand Down
1 change: 1 addition & 0 deletions openprocurement/tender/competitivedialogue/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def check_status(request):
LOGGER.info('Switched tender {} to {}'.format(tender['id'], 'active.stage2.pending'),
extra=context_unpack(request, {'MESSAGE_ID': 'switched_tender_active_stage2_pending'}))
tender.status = 'active.stage2.pending'
check_initial_bids_count(request)
return


Expand Down

0 comments on commit 604ba51

Please sign in to comment.