Commit 39c0be7bc4d020432528a603b1253975abfcc902

Authored by alexdiatlov
Committed by GitHub
2 parents 5ce9e704 f1f40333

Merge pull request #274 from ProzorroUKR/PriceQuotation

fix kind for PQ planning
@@ -303,7 +303,6 @@ def test_tender_data_planning(params): @@ -303,7 +303,6 @@ def test_tender_data_planning(params):
303 } 303 }
304 }, 304 },
305 "procuringEntity": { 305 "procuringEntity": {
306 - #"kind": "general",  
307 "identifier": { 306 "identifier": {
308 "scheme": "UA-EDR", 307 "scheme": "UA-EDR",
309 "id": random.choice(["13313462", "00037256"]), 308 "id": random.choice(["13313462", "00037256"]),
@@ -333,6 +332,8 @@ def test_tender_data_planning(params): @@ -333,6 +332,8 @@ def test_tender_data_planning(params):
333 data["procuringEntity"]["kind"] = "defense" 332 data["procuringEntity"]["kind"] = "defense"
334 elif params.get("mode") in ["belowThreshold", "reporting"]: 333 elif params.get("mode") in ["belowThreshold", "reporting"]:
335 data["procuringEntity"]["kind"] = "other" 334 data["procuringEntity"]["kind"] = "other"
  335 + elif params.get("mode") in ["priceQuotation"]:
  336 + data["procuringEntity"]["kind"] = random.choice(['authority', 'defense', 'general', 'social', 'special'])
336 else: 337 else:
337 data["procuringEntity"]["kind"] = random.choice(["general", "special", "central", "authority", "social"]) 338 data["procuringEntity"]["kind"] = random.choice(["general", "special", "central", "authority", "social"])
338 buyers = test_buyers_data() 339 buyers = test_buyers_data()
@@ -376,12 +377,6 @@ def test_tender_data_planning(params): @@ -376,12 +377,6 @@ def test_tender_data_planning(params):
376 breakdown_element = test_breakdown_data() 377 breakdown_element = test_breakdown_data()
377 breakdown_element['value']['amount'] = value 378 breakdown_element['value']['amount'] = value
378 data['budget']['breakdown'].append(breakdown_element) 379 data['budget']['breakdown'].append(breakdown_element)
379 - if params['mode'] == "priceQuotation":  
380 - for buyer in data['buyers']:  
381 - del buyer['kind']  
382 - del buyer['address']  
383 - del data['procuringEntity']['kind']  
384 - del data['procuringEntity']['address']  
385 return munchify(data) 380 return munchify(data)
386 381
387 382
Please register or login to post a comment