Skip to content

Commit

Permalink
Add check for yearlyPaymentsPercentageRange and fundingKind tender fi…
Browse files Browse the repository at this point in the history
…elds auction view in tests
  • Loading branch information
annawzz committed Sep 16, 2017
1 parent 1b74a36 commit 3896997
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openprocurement/tender/esco/tests/auction_blanks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def get_tender_auction(self):
self.assertNotEqual(auction, self.initial_data)
self.assertIn('dateModified', auction)
self.assertIn('minimalStepPercentage', auction)
self.assertIn('yearlyPaymentsPercentageRange', auction)
self.assertIn('fundingKind', auction)
self.assertNotIn("procuringEntity", auction)
self.assertNotIn("tenderers", auction["bids"][0])
self.assertEqual(auction["bids"][0]['value']['amountPerfomance'], self.initial_bids[0]['value']['amountPerfomance'])
Expand Down Expand Up @@ -194,6 +196,10 @@ def get_tender_lot_auction(self):
self.assertNotEqual(auction, self.initial_data)
self.assertIn('dateModified', auction)
self.assertIn('lots', auction)
self.assertIn('yearlyPaymentsPercentageRange', auction)
self.assertIn('fundingKind', auction)
self.assertIn('yearlyPaymentsPercentageRange', auction['lots'][0])
self.assertIn('fundingKind', auction['lots'][0])
self.assertNotIn("procuringEntity", auction)
self.assertNotIn("tenderers", auction["bids"][0])
self.assertEqual(auction["bids"][0]['lotValues'][0]['value']['amountPerfomance'], self.initial_bids[0]['lotValues'][0]['value']['amountPerfomance'])
Expand Down Expand Up @@ -321,6 +327,10 @@ def get_tender_lots_auction(self):
self.assertNotEqual(auction, self.initial_data)
self.assertIn('dateModified', auction)
self.assertIn('lots', auction)
self.assertIn('yearlyPaymentsPercentageRange', auction)
self.assertIn('fundingKind', auction)
self.assertIn('yearlyPaymentsPercentageRange', auction['lots'][0])
self.assertIn('fundingKind', auction['lots'][0])
self.assertIn('items', auction)
self.assertNotIn("procuringEntity", auction)
self.assertNotIn("tenderers", auction["bids"][0])
Expand Down Expand Up @@ -461,6 +471,8 @@ def get_tender_auction_feature(self):
self.assertNotEqual(auction, self.initial_data)
self.assertIn('dateModified', auction)
self.assertNotIn("procuringEntity", auction)
self.assertIn('yearlyPaymentsPercentageRange', auction)
self.assertIn('fundingKind', auction)
self.assertNotIn("tenderers", auction["bids"][0])
self.assertEqual(auction["bids"][0]['value']['amountPerfomance'], self.initial_bids[0]['value']['amountPerfomance'])
self.assertEqual(auction["bids"][1]['value']['amountPerfomance'], self.initial_bids[1]['value']['amountPerfomance'])
Expand Down

0 comments on commit 3896997

Please sign in to comment.