Commit 5772b6aef6e3ff4229835800d6b726bb5b539ae2
1 parent
9fe91b7f
Add initial data params for limited procurement
Showing
5 changed files
with
27 additions
and
1 deletions
... | ... | @@ -121,6 +121,8 @@ def test_tender_data(params, periods=("enquiry", "tender")): |
121 | 121 | data['items'][0]['id'] = data['items'][0].get('id', uuid4().hex) |
122 | 122 | new_feature['relatedItem'] = data['items'][0]['id'] |
123 | 123 | data['features'].append(new_feature) |
124 | + if not data['features']: | |
125 | + del data['features'] | |
124 | 126 | return munchify(data) |
125 | 127 | |
126 | 128 | ... | ... |
... | ... | @@ -54,7 +54,16 @@ Resource resource.robot |
54 | 54 | ############################################################################################## |
55 | 55 | |
56 | 56 | Можливість створити закупівлю |
57 | - ${tender_data}= Підготувати дані для створення тендера | |
57 | + ${number_of_lots}= Convert To Integer ${number_of_lots} | |
58 | + ${number_of_items}= Convert To Integer ${number_of_items} | |
59 | + ${tender_parameters}= Create Dictionary | |
60 | + ... mode=${mode} | |
61 | + ... number_of_items=${number_of_items} | |
62 | + ... number_of_lots=${number_of_lots} | |
63 | + ... tender_meat=${${tender_meat}} | |
64 | + ... lot_meat=${${lot_meat}} | |
65 | + ... item_meat=${${item_meat}} | |
66 | + ${tender_data}= Підготувати дані для створення тендера ${tender_parameters} | |
58 | 67 | ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_owner} ${tender_data} |
59 | 68 | ${TENDER_UAID}= Викликати для учасника ${tender_owner} |
60 | 69 | ... Створити тендер | ... | ... |
... | ... | @@ -8,6 +8,11 @@ Suite Teardown Close all browsers |
8 | 8 | ${mode} negotiation.quick |
9 | 9 | @{used_roles} tender_owner viewer |
10 | 10 | |
11 | +${number_of_items} ${1} | |
12 | +${number_of_lots} ${0} | |
13 | +${tender_meat} ${False} | |
14 | +${lot_meat} ${False} | |
15 | +${item_meat} ${False} | |
11 | 16 | |
12 | 17 | *** Test Cases *** |
13 | 18 | ############################################################################################## | ... | ... |
... | ... | @@ -8,6 +8,11 @@ Suite Teardown Close all browsers |
8 | 8 | ${mode} negotiation |
9 | 9 | @{used_roles} tender_owner viewer |
10 | 10 | |
11 | +${number_of_items} ${1} | |
12 | +${number_of_lots} ${0} | |
13 | +${tender_meat} ${False} | |
14 | +${lot_meat} ${False} | |
15 | +${item_meat} ${False} | |
11 | 16 | |
12 | 17 | *** Test Cases *** |
13 | 18 | ############################################################################################## | ... | ... |
... | ... | @@ -8,6 +8,11 @@ Suite Teardown Close all browsers |
8 | 8 | ${mode} reporting |
9 | 9 | @{used_roles} tender_owner viewer |
10 | 10 | |
11 | +${number_of_items} ${1} | |
12 | +${number_of_lots} ${0} | |
13 | +${tender_meat} ${False} | |
14 | +${lot_meat} ${False} | |
15 | +${item_meat} ${False} | |
11 | 16 | |
12 | 17 | *** Test Cases *** |
13 | 18 | ############################################################################################## | ... | ... |
Please
register
or
login
to post a comment