Commit bf91ea54a5cfede1c42ea80970f0f937d2ef661a

Authored by alexdiatlov
Committed by GitHub
2 parents 054afab3 225ae9ce

Merge pull request #257 from ProzorroUKR/CS-7231

add new cause variants for negotiation/negotiation.qucik
... ... @@ -382,22 +382,46 @@ def test_tender_data_limited(params, plan_data):
382 382 data.update({"procurementMethodType": params['mode'], "procurementMethod": "limited"})
383 383 if params['mode'] == "negotiation":
384 384 cause_variants = (
385   - "artContestIP",
386   - "noCompetition",
  385 + "resolvingInsolvency",
  386 + "artPurchase",
  387 + "contestWinner",
  388 + "technicalReasons",
  389 + "intProperty",
  390 + "lastHope",
387 391 "twiceUnsuccessful",
388 392 "additionalPurchase",
389 393 "additionalConstruction",
390 394 "stateLegalServices"
391 395 )
392 396 cause = fake.random_element(cause_variants)
  397 + data.update({
  398 + "cause": cause,
  399 + "causeDescription": fake.description()
  400 + })
393 401 elif params['mode'] == "negotiation.quick":
394   - cause_variants = ('quick',)
395   - if params['mode'] in ("negotiation", "negotiation.quick"):
  402 + cause_variants = (
  403 + "resolvingInsolvency",
  404 + "artPurchase",
  405 + "contestWinner",
  406 + "technicalReasons",
  407 + "intProperty",
  408 + "lastHope",
  409 + "twiceUnsuccessful",
  410 + "additionalPurchase",
  411 + "additionalConstruction",
  412 + "stateLegalServices",
  413 + "emergency",
  414 + "humanitarianAid",
  415 + "contractCancelled",
  416 + "activeComplaint"
  417 + )
396 418 cause = fake.random_element(cause_variants)
397 419 data.update({
398 420 "cause": cause,
399 421 "causeDescription": fake.description()
400 422 })
  423 + #if params['mode'] in ("negotiation", "negotiation.quick"):
  424 + #cause = fake.random_element(cause_variants)
401 425 return munchify(data)
402 426
403 427
... ...
Please register or login to post a comment