Beispiel #1
0
 def OnNewUserKeyword(self, event):
     dlg = UserKeywordNameDialog(self.controller)
     if dlg.ShowModal() == wx.ID_OK:
         self.controller.execute(AddKeyword(dlg.get_name(), dlg.get_args()))
     dlg.Destroy()
Beispiel #2
0
 def OnNewUserKeyword(self, event):
     dlg = UserKeywordNameDialog(self.controller)
     if dlg.ShowModal() == wx.ID_OK:
         self.controller.execute(AddKeyword(dlg.get_name(), dlg.get_args()))
     dlg.Destroy()
 def test_arguments_are_returned(self):
     kw_ctrl = file_controller().create_keyword('Keyword it is')
     dlg = UserKeywordNameDialog(kw_ctrl)
     assert_equal(dlg.get_args(), '')
 def test_arguments_are_returned(self):
     kw_ctrl = file_controller().create_keyword('Keyword it is')
     dlg = UserKeywordNameDialog(kw_ctrl)
     assert_equal(dlg.get_args(), '')
 def test_get_empty_args(self):
     kw_ctrl = file_controller().create_keyword('Keyword it is')
     dlg = UserKeywordNameDialog(kw_ctrl, item=kw_ctrl.data)
     assert_equal(dlg.get_args(), '')
 def test_get_args_item_is_not_none(self):
     kw_ctrl = file_controller().create_keyword('Keyword it is',
                                                '${a1} | ${a2}')
     dlg = UserKeywordNameDialog(kw_ctrl, item=kw_ctrl.data)
     assert_equal(dlg.get_args(), '${a1} | ${a2}')