Skip to content

Commit

Permalink
Add check for lot auction period
Browse files Browse the repository at this point in the history
  • Loading branch information
annawzz committed Oct 25, 2017
1 parent 83a2931 commit 189576e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openprocurement/tender/openuadefense/tests/lot_blanks.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,11 @@ def two_lot_2bid_on_first_and_1_on_second_awarding(self):

# for SECOND lot
lot_id = lots[1]
# check lots auction period
response = self.app.get('/tenders/{}/lots/{}'.format(tender_id, lot_id))
self.assertIn('auctionPeriod', response.json['data'])
self.assertIn('startDate', response.json['data']['auctionPeriod'])
self.assertNotIn('shouldStartAfter', response.json['data']['auctionPeriod'])
# get pending award
response = self.app.get('/tenders/{}/awards?acc_token={}'.format(tender_id, owner_token))
award_id = [i['id'] for i in response.json['data'] if i['status'] == 'pending' and i['lotID'] == lot_id][0]
Expand Down

0 comments on commit 189576e

Please sign in to comment.