Commit 8c4ed65c4775778744eb6f1672b519b381f8d3fc

Authored by alexdiatlov
Committed by GitHub
2 parents 3364be67 12aac3e8

Merge pull request #260 from ProzorroUKR/dev_prozorro_2

Dev prozorro 2
... ... @@ -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