Commit 7523894fbbcdcb12757e08fa23abfcf083c9e796
Merge pull request #215 from openprocurement/devel
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,6 +121,8 @@ def test_tender_data(params, periods=("enquiry", "tender")): | ||
121 | data['items'][0]['id'] = data['items'][0].get('id', uuid4().hex) | 121 | data['items'][0]['id'] = data['items'][0].get('id', uuid4().hex) |
122 | new_feature['relatedItem'] = data['items'][0]['id'] | 122 | new_feature['relatedItem'] = data['items'][0]['id'] |
123 | data['features'].append(new_feature) | 123 | data['features'].append(new_feature) |
124 | + if not data['features']: | ||
125 | + del data['features'] | ||
124 | return munchify(data) | 126 | return munchify(data) |
125 | 127 | ||
126 | 128 |
@@ -54,7 +54,16 @@ Resource resource.robot | @@ -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 | ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_owner} ${tender_data} | 67 | ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_owner} ${tender_data} |
59 | ${TENDER_UAID}= Викликати для учасника ${tender_owner} | 68 | ${TENDER_UAID}= Викликати для учасника ${tender_owner} |
60 | ... Створити тендер | 69 | ... Створити тендер |
@@ -8,6 +8,11 @@ Suite Teardown Close all browsers | @@ -8,6 +8,11 @@ Suite Teardown Close all browsers | ||
8 | ${mode} negotiation.quick | 8 | ${mode} negotiation.quick |
9 | @{used_roles} tender_owner viewer | 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 | *** Test Cases *** | 17 | *** Test Cases *** |
13 | ############################################################################################## | 18 | ############################################################################################## |
@@ -8,6 +8,11 @@ Suite Teardown Close all browsers | @@ -8,6 +8,11 @@ Suite Teardown Close all browsers | ||
8 | ${mode} negotiation | 8 | ${mode} negotiation |
9 | @{used_roles} tender_owner viewer | 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 | *** Test Cases *** | 17 | *** Test Cases *** |
13 | ############################################################################################## | 18 | ############################################################################################## |
@@ -8,6 +8,11 @@ Suite Teardown Close all browsers | @@ -8,6 +8,11 @@ Suite Teardown Close all browsers | ||
8 | ${mode} reporting | 8 | ${mode} reporting |
9 | @{used_roles} tender_owner viewer | 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 | *** Test Cases *** | 17 | *** Test Cases *** |
13 | ############################################################################################## | 18 | ############################################################################################## |
Please
register
or
login
to post a comment