Commit 3bebd5668fa24faa246e135ffc15000f871ac846

Authored by kosaniak
1 parent bf41f6ed

Add evaluate function

@@ -329,7 +329,7 @@ Library Selenium2Library @@ -329,7 +329,7 @@ Library Selenium2Library
329 ${last_amount}= Get Text id=max_bid_amount_price 329 ${last_amount}= Get Text id=max_bid_amount_price
330 ${last_amount}= convert_amount_string_to_float ${last_amount} 330 ${last_amount}= convert_amount_string_to_float ${last_amount}
331 ${extra_amount}= convert_amount_string_to_float ${extra_amount} 331 ${extra_amount}= convert_amount_string_to_float ${extra_amount}
332 - ${last_amount}= add_and_round ${last_amount} ${extra_amount} 332 + ${last_amount}= Evaluate ${last_amount}+${extra_amount}
333 Поставити ставку ${last_amount} Надто висока заявка 333 Поставити ставку ${last_amount} Надто висока заявка
334 334
335 335
@@ -524,10 +524,6 @@ def mult_and_round(*args, **kwargs): @@ -524,10 +524,6 @@ def mult_and_round(*args, **kwargs):
524 return round(reduce(operator.mul, args), kwargs.get('precision', 2)) 524 return round(reduce(operator.mul, args), kwargs.get('precision', 2))
525 525
526 526
527 -def add_and_round(arg1, arg2):  
528 - return float(arg1 + arg2)  
529 -  
530 -  
531 def generate_test_bid_data_second_stage(tender_data, index='0'): 527 def generate_test_bid_data_second_stage(tender_data, index='0'):
532 bid = test_bid_data() 528 bid = test_bid_data()
533 if index.isdigit(): 529 if index.isdigit():
Please register or login to post a comment