Ejemplo n.º 1
0
    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"
Ejemplo n.º 2
0
def sage_expense_payment_waiver(config_request, expense_payment):
    factory = SageExpensePaymentWaiver(None, config_request)
    factory.set_payment(expense_payment)
    return factory
Ejemplo n.º 3
0
def sage_expense_payment_waiver(config_request, expense_payment):
    factory = SageExpensePaymentWaiver(None, config_request)
    factory.set_payment(expense_payment)
    return factory
Ejemplo n.º 4
0
    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"