def test_code_journal(self, expense_payment, config_request): config_request.config['code_journal_waiver_ndf'] = 'JOURNAL_ABANDON' sage_expense_payment_waiver = SageExpensePaymentWaiver( None, config_request) sage_expense_payment_waiver.set_payment(expense_payment) assert sage_expense_payment_waiver.code_journal == "JOURNAL_ABANDON"
def sage_expense_payment_waiver(config_request, expense_payment): factory = SageExpensePaymentWaiver(None, config_request) factory.set_payment(expense_payment) return factory
def test_code_journal(self, expense_payment, config_request): config_request.config['code_journal_waiver_ndf'] = 'JOURNAL_ABANDON' sage_expense_payment_waiver = SageExpensePaymentWaiver(None, config_request) sage_expense_payment_waiver.set_payment(expense_payment) assert sage_expense_payment_waiver.code_journal == "JOURNAL_ABANDON"