Commit 225ae9ce110600c08117390d8b69acacccca16c0

Authored by AlexDiatlov
1 parent ac292abb

add new cause variants for negotiation/negotiation.qucik

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