Commit 13dfc4e08fcf684f838facab26012bb36eb22d7d

Authored by OrysiaDrabych
1 parent f5b198a2

Delete duplicate get_id_from_doc_name function

... ... @@ -508,7 +508,7 @@ Resource resource.robot
508 508
509 509 Додати документацію до зміни договору
510 510 ${file_path} ${file_name} ${file_content}= create_fake_doc
511   - ${doc_id}= get_id_from_doc_name ${file_name}
  511 + ${doc_id}= get_id_from_string ${file_name}
512 512 ${doc}= Create Dictionary
513 513 ... id=${doc_id}
514 514 ... name=${file_name}
... ... @@ -520,7 +520,7 @@ Resource resource.robot
520 520
521 521 Додати документацію до договору
522 522 ${file_path} ${file_name} ${file_content}= create_fake_doc
523   - ${doc_id}= get_id_from_doc_name ${file_name}
  523 + ${doc_id}= get_id_from_string ${file_name}
524 524 ${doc}= Create Dictionary
525 525 ... id=${doc_id}
526 526 ... name=${file_name}
... ...
... ... @@ -478,10 +478,6 @@ def get_object_index_by_id(data, object_id):
478 478 return index
479 479
480 480
481   -def get_id_from_doc_name(name):
482   - return re.match(r'd\-[0-9a-fA-F]{8}', name).group(0)
483   -
484   -
485 481 def get_object_by_id(data, given_object_id, slice_element, object_id):
486 482 """
487 483 data: object to slice
... ...
Please register or login to post a comment