Example #1
0
    def test_salary_history(self, run_dialog):
        client = self.create_client()
        slave = ClientCreditSlave(self.store, client)

        self.click(slave.salary_history_button)
        run_dialog.assert_called_once_with(ClientSalaryHistorySearch,
                                           slave.get_toplevel().get_toplevel(),
                                           self.store,
                                           client=client)
Example #2
0
    def test_credit_transactions(self, run_dialog):
        client = self.create_client()
        slave = ClientCreditSlave(self.store, client)

        self.click(slave.credit_transactions_button)
        run_dialog.assert_called_once_with(CreditInfoListDialog,
                                           slave.get_toplevel().get_toplevel(),
                                           self.store,
                                           client,
                                           reuse_store=True)