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,22 +373,46 @@ def test_tender_data_limited(params, plan_data):
373 data.update({"procurementMethodType": params['mode'], "procurementMethod": "limited"}) 373 data.update({"procurementMethodType": params['mode'], "procurementMethod": "limited"})
374 if params['mode'] == "negotiation": 374 if params['mode'] == "negotiation":
375 cause_variants = ( 375 cause_variants = (
376 - "artContestIP",  
377 - "noCompetition", 376 + "resolvingInsolvency",
  377 + "artPurchase",
  378 + "contestWinner",
  379 + "technicalReasons",
  380 + "intProperty",
  381 + "lastHope",
378 "twiceUnsuccessful", 382 "twiceUnsuccessful",
379 "additionalPurchase", 383 "additionalPurchase",
380 "additionalConstruction", 384 "additionalConstruction",
381 "stateLegalServices" 385 "stateLegalServices"
382 ) 386 )
383 cause = fake.random_element(cause_variants) 387 cause = fake.random_element(cause_variants)
  388 + data.update({
  389 + "cause": cause,
  390 + "causeDescription": fake.description()
  391 + })
384 elif params['mode'] == "negotiation.quick": 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 cause = fake.random_element(cause_variants) 409 cause = fake.random_element(cause_variants)
388 data.update({ 410 data.update({
389 "cause": cause, 411 "cause": cause,
390 "causeDescription": fake.description() 412 "causeDescription": fake.description()
391 }) 413 })
  414 + #if params['mode'] in ("negotiation", "negotiation.quick"):
  415 + #cause = fake.random_element(cause_variants)
392 return munchify(data) 416 return munchify(data)
393 417
394 418
Please register or login to post a comment