Commit 12aac3e83bb0c621ce2202ebdac400cd50d311c5

Authored by alexdiatlov
Committed by GitHub
2 parents bf91ea54 d868568d

Merge pull request #259 from ProzorroUKR/CS-7223

Cs 7223
@@ -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