From 189576e69629a788fcde41585620b93b7f288b9d Mon Sep 17 00:00:00 2001 From: annawzz Date: Wed, 25 Oct 2017 19:23:25 +0300 Subject: [PATCH] Add check for lot auction period --- openprocurement/tender/openuadefense/tests/lot_blanks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openprocurement/tender/openuadefense/tests/lot_blanks.py b/openprocurement/tender/openuadefense/tests/lot_blanks.py index d71911e..9c339a9 100644 --- a/openprocurement/tender/openuadefense/tests/lot_blanks.py +++ b/openprocurement/tender/openuadefense/tests/lot_blanks.py @@ -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]