Commit d868568daa4fdd8dd30af5855682ff950f96585e
1 parent
3364be67
fix procuringEntity.kind due to type of the procedure according to cooments in CS-7223
Showing
1 changed file
with
7 additions
and
1 deletions
... | ... | @@ -302,7 +302,7 @@ def test_tender_data_planning(params): |
302 | 302 | } |
303 | 303 | }, |
304 | 304 | "procuringEntity": { |
305 | - "kind": "general", | |
305 | + #"kind": "general", | |
306 | 306 | "identifier": { |
307 | 307 | "scheme": "UA-EDR", |
308 | 308 | "id": random.choice(["13313462", "00037256"]), |
... | ... | @@ -328,6 +328,12 @@ def test_tender_data_planning(params): |
328 | 328 | "buyers": [] |
329 | 329 | } |
330 | 330 | data["procuringEntity"]["name"] = data["procuringEntity"]["identifier"]["legalName"] |
331 | + if params.get("mode") == "aboveThresholdUA.defense": | |
332 | + data["procuringEntity"]["kind"] = "defense" | |
333 | + elif params.get("mode") in ["belowThreshold", "reporting"]: | |
334 | + data["procuringEntity"]["kind"] = "other" | |
335 | + else: | |
336 | + data["procuringEntity"]["kind"] = random.choice(["general", "special", "central", "authority", "social"]) | |
331 | 337 | buyers = test_buyers_data() |
332 | 338 | buyers["name"] = buyers["identifier"]["legalName"] |
333 | 339 | data['buyers'].append(buyers) | ... | ... |
Please
register
or
login
to post a comment