Commit a29702965a6cbd9189585e8a22d39304754beb5c
Committed by
GitHub
Merge pull request #276 from ProzorroUKR/PriceQuotation
fix kind for PQ planning
Showing
1 changed file
with
2 additions
and
7 deletions
@@ -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