Skip to content

Commit

Permalink
Update auction with features tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annawzz committed Nov 7, 2017
1 parent 4f77483 commit 72b9a58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openprocurement/tender/esco/tests/auction_blanks.py
Expand Up @@ -801,6 +801,8 @@ def post_tender_auction_feature(self):
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
tender = response.json['data']
self.assertIn('features', tender)
self.assertIn('parameters', tender["bids"][0])

self.assertEqual(tender["bids"][0]['value']['yearlyPaymentsPercentage'],
patch_data["bids"][1]['value']['yearlyPaymentsPercentage'])
Expand Down Expand Up @@ -972,6 +974,8 @@ def post_tender_lot_auction_feature(self):
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
tender = response.json['data']
self.assertIn('features', tender)
self.assertIn('parameters', tender["bids"][0])

self.assertEqual(tender["bids"][0]['lotValues'][0]['value']['yearlyPaymentsPercentage'],
patch_data["bids"][1]['lotValues'][0]['value']['yearlyPaymentsPercentage'])
Expand Down Expand Up @@ -1167,6 +1171,8 @@ def post_tender_lots_auction_feature(self):
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
tender = response.json['data']
self.assertIn('features', tender)
self.assertIn('parameters', tender["bids"][0])

self.assertEqual(tender["bids"][0]['lotValues'][0]['value']['yearlyPaymentsPercentage'],
patch_data["bids"][1]['lotValues'][0]['value']['yearlyPaymentsPercentage'])
Expand Down

0 comments on commit 72b9a58

Please sign in to comment.