Commit 37d1eaa416e8356b653b7bda27901b0c595892bc

Authored by ivanka12
1 parent b71e6790

add test_tender_data_framework_agreement method

... ... @@ -557,6 +557,14 @@ def test_tender_data_openeu(params, submissionMethodDetails):
557 557 return data
558 558
559 559
  560 +def test_tender_data_framework_agreement(params, submissionMethodDetails):
  561 + data = test_tender_data_openeu(params, submissionMethodDetails)
  562 + data['procurementMethodType'] = 'closeFrameworkAgreementUA'
  563 + data['maxAwardsCount'] = fake.random_int(min=3, max=5)
  564 + data['agreementDuration'] = 'P1M'
  565 + return data
  566 +
  567 +
560 568 def test_tender_data_competitive_dialogue(params, submissionMethodDetails):
561 569 # We should not provide any values for `enquiryPeriod` when creating
562 570 # an openUA or openEU procedure. That field should not be present at all.
... ...
... ... @@ -51,6 +51,7 @@ from .initial_data import (
51 51 test_tender_data_openua,
52 52 test_tender_data_planning,
53 53 test_tender_data_openua_defense,
  54 + test_tender_data_framework_agreement,
54 55 test_bid_competitive_data,
55 56 tets_monitoring_data,
56 57 test_party,
... ... @@ -340,6 +341,9 @@ def prepare_test_tender_data(procedure_intervals,
340 341 tender_parameters, submissionMethodDetails)})
341 342 elif mode == 'reporting':
342 343 return munchify({'data': test_tender_data_limited(tender_parameters)})
  344 + elif mode == 'open_framework':
  345 + return munchify({'data': test_tender_data_framework_agreement(
  346 + tender_parameters, submissionMethodDetails)})
343 347 elif mode == 'belowThreshold':
344 348 return munchify({'data': test_tender_data(
345 349 tender_parameters,
... ...
Please register or login to post a comment