Commit 90723ccc03612e861deb5a68b666caaa4e1de02f
1 parent
df307b11
lang criteria condition in bid criteria response generation
Showing
1 changed file
with
5 additions
and
2 deletions
... | ... | @@ -1290,8 +1290,11 @@ def test_bid_criteria(tender_data, criteria_len, bid_data, bid_document): |
1290 | 1290 | mock = deepcopy(mock) |
1291 | 1291 | mock["requirement"]["id"] = requirement["id"] |
1292 | 1292 | mock["requirement"]["title"] = requirement["title"] |
1293 | - mock["evidences"][0]["relatedDocument"]["id"] = bid_document["data"]["id"] | |
1294 | - mock["evidences"][0]["relatedDocument"]["title"] = bid_document["data"]["title"] | |
1293 | + if criteria.get('title') == u'Мова (мови), якою (якими) повинні готуватися тендерні пропозиції': | |
1294 | + del mock["evidences"][0] | |
1295 | + else: | |
1296 | + mock["evidences"][0]["relatedDocument"]["id"] = bid_document["data"]["id"] | |
1297 | + mock["evidences"][0]["relatedDocument"]["title"] = bid_document["data"]["title"] | |
1295 | 1298 | bid.data.append(mock) |
1296 | 1299 | else: |
1297 | 1300 | pass | ... | ... |
Please
register
or
login
to post a comment