Commit f1bae404375ce1b7c6f0becfc867f40e5f618948
1 parent
350bec0e
add relatedParty to test_conclusion, test_elimination_report, test_status_data
Showing
2 changed files
with
13 additions
and
8 deletions
| @@ -153,17 +153,17 @@ Resource resource.robot | @@ -153,17 +153,17 @@ Resource resource.robot | ||
| 153 | 153 | ||
| 154 | 154 | ||
| 155 | Можливість надати висновок про наявність порушення в тендері | 155 | Можливість надати висновок про наявність порушення в тендері |
| 156 | - ${conclusion_data}= test_conclusion ${True} | 156 | + ${conclusion_data}= test_conclusion ${True} ${USERS.users['${dasu_user}'].monitoring_data.data.parties[0].id} |
| 157 | Run As ${dasu_user} Надати висновок про наявність/відсутність порушення в тендері ${MONITORING['MONITORING_UAID']} ${conclusion_data} | 157 | Run As ${dasu_user} Надати висновок про наявність/відсутність порушення в тендері ${MONITORING['MONITORING_UAID']} ${conclusion_data} |
| 158 | 158 | ||
| 159 | 159 | ||
| 160 | Можливість надати висновок про відсутність порушення в тендері | 160 | Можливість надати висновок про відсутність порушення в тендері |
| 161 | - ${conclusion_data}= test_conclusion ${False} | 161 | + ${conclusion_data}= test_conclusion ${False} ${USERS.users['${dasu_user}'].monitoring_data.data.parties[0].id} |
| 162 | Run As ${dasu_user} Надати висновок про наявність/відсутність порушення в тендері ${MONITORING['MONITORING_UAID']} ${conclusion_data} | 162 | Run As ${dasu_user} Надати висновок про наявність/відсутність порушення в тендері ${MONITORING['MONITORING_UAID']} ${conclusion_data} |
| 163 | 163 | ||
| 164 | 164 | ||
| 165 | Можливість змінити статус об’єкта моніторингу на ${status} | 165 | Можливість змінити статус об’єкта моніторингу на ${status} |
| 166 | - ${conclusion_data}= test_status_data ${status} | 166 | + ${conclusion_data}= test_status_data ${status} ${USERS.users['${dasu_user}'].monitoring_data.data.parties[0].id} |
| 167 | Run As ${dasu_user} Змінити статус об’єкта моніторингу ${MONITORING['MONITORING_UAID']} ${conclusion_data} | 167 | Run As ${dasu_user} Змінити статус об’єкта моніторингу ${MONITORING['MONITORING_UAID']} ${conclusion_data} |
| 168 | 168 | ||
| 169 | 169 | ||
| @@ -189,7 +189,9 @@ Resource resource.robot | @@ -189,7 +189,9 @@ Resource resource.robot | ||
| 189 | 189 | ||
| 190 | 190 | ||
| 191 | Можливість оприлюднути рішення про усунення порушення | 191 | Можливість оприлюднути рішення про усунення порушення |
| 192 | - ${report_data}= test_elimination_report ${USERS.users['${dasu_user}'].monitoring_data.data.conclusion.violationType[0]} | 192 | + ${report_data}= test_elimination_report |
| 193 | + ... ${USERS.users['${dasu_user}'].monitoring_data.data.conclusion.violationType[0]} | ||
| 194 | + ... ${USERS.users['${dasu_user}'].monitoring_data.data.parties[0].id} | ||
| 193 | Run As ${dasu_user} Оприлюднити рішення про усунення порушення ${MONITORING['MONITORING_UAID']} ${report_data} | 195 | Run As ${dasu_user} Оприлюднити рішення про усунення порушення ${MONITORING['MONITORING_UAID']} ${report_data} |
| 194 | 196 | ||
| 195 | 197 |
| @@ -630,19 +630,20 @@ def test_dialogue(): | @@ -630,19 +630,20 @@ def test_dialogue(): | ||
| 630 | }) | 630 | }) |
| 631 | 631 | ||
| 632 | 632 | ||
| 633 | -def test_conclusion(violationOccurred=False): | 633 | +def test_conclusion(violationOccurred, relatedParty_id): |
| 634 | return munchify( | 634 | return munchify( |
| 635 | { | 635 | { |
| 636 | "data": { | 636 | "data": { |
| 637 | "conclusion": { | 637 | "conclusion": { |
| 638 | "violationOccurred": violationOccurred, | 638 | "violationOccurred": violationOccurred, |
| 639 | - "violationType": random.choice(violationType) | 639 | + "violationType": random.choice(violationType), |
| 640 | + "relatedParty": relatedParty_id, | ||
| 640 | } | 641 | } |
| 641 | } | 642 | } |
| 642 | }) | 643 | }) |
| 643 | 644 | ||
| 644 | 645 | ||
| 645 | -def test_status_data(status): | 646 | +def test_status_data(status, relatedParty_id=None): |
| 646 | data = { | 647 | data = { |
| 647 | "data": { | 648 | "data": { |
| 648 | "status": status | 649 | "status": status |
| @@ -651,16 +652,18 @@ def test_status_data(status): | @@ -651,16 +652,18 @@ def test_status_data(status): | ||
| 651 | if status in ('stopped', 'cancelled'): | 652 | if status in ('stopped', 'cancelled'): |
| 652 | data["data"]["cancellation"] = {} | 653 | data["data"]["cancellation"] = {} |
| 653 | data["data"]["cancellation"]["description"] = fake_en.sentence(nb_words=10, variable_nb_words=True) | 654 | data["data"]["cancellation"]["description"] = fake_en.sentence(nb_words=10, variable_nb_words=True) |
| 655 | + data["data"]["cancellation"]["relatedParty"] = relatedParty_id | ||
| 654 | return munchify(data) | 656 | return munchify(data) |
| 655 | 657 | ||
| 656 | 658 | ||
| 657 | -def test_elimination_report(corruption): | 659 | +def test_elimination_report(corruption, relatedParty_id): |
| 658 | return munchify({ | 660 | return munchify({ |
| 659 | "data": { | 661 | "data": { |
| 660 | "eliminationResolution": { | 662 | "eliminationResolution": { |
| 661 | "resultByType": { | 663 | "resultByType": { |
| 662 | corruption: random.choice(["eliminated", "not_eliminated", "no_mechanism"]) | 664 | corruption: random.choice(["eliminated", "not_eliminated", "no_mechanism"]) |
| 663 | }, | 665 | }, |
| 666 | + "relatedParty": relatedParty_id, | ||
| 664 | "result": random.choice(["completely", "partly", "none"]), | 667 | "result": random.choice(["completely", "partly", "none"]), |
| 665 | "description": fake_en.sentence(nb_words=10, variable_nb_words=True) | 668 | "description": fake_en.sentence(nb_words=10, variable_nb_words=True) |
| 666 | } | 669 | } |
Please
register
or
login
to post a comment