def apply_proposal(self, test_data, selenium):
     """Apply proposal."""
     if test_data["proposal"].status == object_states.PROPOSED:
         users.set_current_user(test_data["control_creator"])
         proposal_ui_facade.apply_proposal(selenium, test_data["control"],
                                           test_data["proposal"],
                                           test_data["proposal_from_gr"])
Exemple #2
0
 def apply_proposal(self, test_data, selenium):
   """Apply proposal."""
   if test_data["proposal_to_apply"].status == object_states.PROPOSED:
     users.set_current_user(test_data["risk_creator"])
     proposal_ui_facade.apply_proposal(
         selenium, test_data["risk"], test_data["proposal_to_apply"],
         [test_data["proposal_from_gr"], test_data["proposal_to_decline"]])
 def apply_proposal(self, test_data, selenium):
     """Apply proposal."""
     if test_data["proposal_to_apply"].status == object_states.PROPOSED:
         users.set_current_user(test_data["obj_creator"])
         proposal_ui_facade.apply_proposal(
             selenium, test_data["obj"], test_data["proposal_to_apply"], [
                 test_data["proposal_from_gr"],
                 test_data["proposal_to_decline"]
             ])
Exemple #4
0
 def apply_proposal(self, test_data, selenium):
     """Apply proposal."""
     if test_data["proposal_to_apply"].status == object_states.PROPOSED:
         users.set_current_user(test_data["obj_creator"])
         self.check_ggrc_6592_7562(
             "obj_creator", test_data["proposal_to_apply"]
             in proposal_ui_facade.get_related_proposals(
                 selenium, test_data["obj"]))
         proposal_ui_facade.apply_proposal(
             selenium, test_data["obj"], test_data["proposal_to_apply"], [
                 test_data["proposal_from_gr"],
                 test_data["proposal_to_decline"]
             ])