Skip to content

Commit

Permalink
Merge branch 'a200325340996959_bid_lotValues'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Oct 24, 2016
2 parents c4c8135 + 9f56bf5 commit 80e0395
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openprocurement/tender/openua/tests/auction.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,8 @@ def test_post_tender_auction(self):
response = self.app.patch_json('/tenders/{}/auction'.format(self.tender_id), {'data': patch_data}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], [{u'lotValues': [{u'relatedLot': [u'relatedLot should be one of lots of bid']}]}])
#self.assertEqual(response.json['errors'][0]["description"], [{u'lotValues': [{u'relatedLot': [u'relatedLot should be one of lots of bid']}]}])
self.assertEqual(response.json['errors'][0]["description"], [{u'lotValues': [u"bids don't allow duplicated proposals"]}])

patch_data['bids'][0]['lotValues'][1]['relatedLot'] = self.initial_bids[0]['lotValues'][1]['relatedLot']

Expand Down Expand Up @@ -887,7 +888,8 @@ def test_patch_tender_auction(self):
response = self.app.patch_json('/tenders/{}/auction'.format(self.tender_id), {'data': patch_data}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], [{u'lotValues': [{u'relatedLot': [u'relatedLot should be one of lots of bid']}]}])
#self.assertEqual(response.json['errors'][0]["description"], [{u'lotValues': [{u'relatedLot': [u'relatedLot should be one of lots of bid']}]}])
self.assertEqual(response.json['errors'][0]["description"], [{u'lotValues': [u"bids don't allow duplicated proposals"]}])

patch_data['bids'][0]['lotValues'][1]['relatedLot'] = self.initial_bids[0]['lotValues'][1]['relatedLot']

Expand Down

0 comments on commit 80e0395

Please sign in to comment.