def test_handle_updates_the_expense(self, state, message, sns_client): expense = Expense(id='abcdef', category='random category') expense.save() action = self.build_action(message, state) assert not expense.notes action.handle() expense.refresh() assert expense.notes == 'Description of the expense'
def test_handle_updates_the_expense(self, state, message): expense = Expense(id='abcdef', category='random category') expense.save() action = self.build_action(message, state) assert not expense.amount action.handle() expense.refresh() assert expense.amount == 12.40