Commit 8c4ed65c4775778744eb6f1672b519b381f8d3fc
Committed by
GitHub
Merge pull request #260 from ProzorroUKR/dev_prozorro_2
Dev prozorro 2
Showing
1 changed file
with
7 additions
and
1 deletions
| @@ -302,7 +302,7 @@ def test_tender_data_planning(params): | @@ -302,7 +302,7 @@ def test_tender_data_planning(params): | ||
| 302 | } | 302 | } |
| 303 | }, | 303 | }, |
| 304 | "procuringEntity": { | 304 | "procuringEntity": { |
| 305 | - "kind": "general", | 305 | + #"kind": "general", |
| 306 | "identifier": { | 306 | "identifier": { |
| 307 | "scheme": "UA-EDR", | 307 | "scheme": "UA-EDR", |
| 308 | "id": random.choice(["13313462", "00037256"]), | 308 | "id": random.choice(["13313462", "00037256"]), |
| @@ -328,6 +328,12 @@ def test_tender_data_planning(params): | @@ -328,6 +328,12 @@ def test_tender_data_planning(params): | ||
| 328 | "buyers": [] | 328 | "buyers": [] |
| 329 | } | 329 | } |
| 330 | data["procuringEntity"]["name"] = data["procuringEntity"]["identifier"]["legalName"] | 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 | buyers = test_buyers_data() | 337 | buyers = test_buyers_data() |
| 332 | buyers["name"] = buyers["identifier"]["legalName"] | 338 | buyers["name"] = buyers["identifier"]["legalName"] |
| 333 | data['buyers'].append(buyers) | 339 | data['buyers'].append(buyers) |
Please
register
or
login
to post a comment