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