Commit 37d1eaa416e8356b653b7bda27901b0c595892bc
1 parent
b71e6790
add test_tender_data_framework_agreement method
Showing
2 changed files
with
12 additions
and
0 deletions
@@ -557,6 +557,14 @@ def test_tender_data_openeu(params, submissionMethodDetails): | @@ -557,6 +557,14 @@ def test_tender_data_openeu(params, submissionMethodDetails): | ||
557 | return data | 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 | def test_tender_data_competitive_dialogue(params, submissionMethodDetails): | 568 | def test_tender_data_competitive_dialogue(params, submissionMethodDetails): |
561 | # We should not provide any values for `enquiryPeriod` when creating | 569 | # We should not provide any values for `enquiryPeriod` when creating |
562 | # an openUA or openEU procedure. That field should not be present at all. | 570 | # an openUA or openEU procedure. That field should not be present at all. |
@@ -51,6 +51,7 @@ from .initial_data import ( | @@ -51,6 +51,7 @@ from .initial_data import ( | ||
51 | test_tender_data_openua, | 51 | test_tender_data_openua, |
52 | test_tender_data_planning, | 52 | test_tender_data_planning, |
53 | test_tender_data_openua_defense, | 53 | test_tender_data_openua_defense, |
54 | + test_tender_data_framework_agreement, | ||
54 | test_bid_competitive_data, | 55 | test_bid_competitive_data, |
55 | tets_monitoring_data, | 56 | tets_monitoring_data, |
56 | test_party, | 57 | test_party, |
@@ -340,6 +341,9 @@ def prepare_test_tender_data(procedure_intervals, | @@ -340,6 +341,9 @@ def prepare_test_tender_data(procedure_intervals, | ||
340 | tender_parameters, submissionMethodDetails)}) | 341 | tender_parameters, submissionMethodDetails)}) |
341 | elif mode == 'reporting': | 342 | elif mode == 'reporting': |
342 | return munchify({'data': test_tender_data_limited(tender_parameters)}) | 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 | elif mode == 'belowThreshold': | 347 | elif mode == 'belowThreshold': |
344 | return munchify({'data': test_tender_data( | 348 | return munchify({'data': test_tender_data( |
345 | tender_parameters, | 349 | tender_parameters, |
Please
register
or
login
to post a comment