diff --git a/tests/testutil.py b/tests/testutil.py index 33f21506e5f54d46d98c5057427bb99325de3132..856bf596c23b9db0a49d2b694d65e796d36508e0 100644 --- a/tests/testutil.py +++ b/tests/testutil.py @@ -348,6 +348,7 @@ class RTClient: self.login_result = True self.last_login = None self.want_cfs = want_cfs + self.edits = {} def login(self, login=None, password=None): if login is None and password is None: @@ -402,10 +403,15 @@ class RTClient: ], } if self.want_cfs: - retval['CF.{payment-method}'] = f'payment method {ticket_id_s}' + retval['CF.{payment-amount}'] = '' + retval['CF.{payment-method}'] = '' retval['CF.{payment-to}'] = f'Hon. Mx. {ticket_id_s}' return retval + def edit_ticket(self, ticket_id, **kwargs): + self.edits.setdefault(str(ticket_id), {}).update(kwargs) + return True + def get_user(self, user_id): user_id_s = str(user_id) match = re.search(r'(\d+)@', user_id_s)