Files
pms/pms/tests/test_pms_payment.py
2021-10-12 20:11:29 +02:00

39 lines
1.4 KiB
Python

from freezegun import freeze_time
from odoo.tests.common import SavepointCase
freeze_time("2000-02-02")
class TestPmsPayment(SavepointCase):
def setUp(self):
super(TestPmsPayment, self).setUp()
# TODO: Test allowed manual payment
# create a journal with allowed_pms_payments = True and
# check that the _get_payment_methods property method return it
# TODO: Test not allowed manual payment
# create a journal without allowed_pms_payments = True and
# check that the _get_payment_methods property method dont return it
# TODO: Test default account payment create
# create a bank journal, a reservation, pay the reservation
# with do_payment method without pay_type parameter
# and check that account payment was created
# TODO: Test default statement line create
# create a cash journal, a reservation, pay the reservation
# with do_payment method without pay_type parameter
# and check that statement line was created
# TODO: Test set pay_type cash, statement line create
# create a bank journal, a reservation, pay the reservation
# with do_payment method with 'cash' pay_type parameter
# and check that statement line was created
# TODO: Test set pay_type bank, account payment create
# create a cash journal, a reservation, pay the reservation
# with do_payment method with 'bank' pay_type parameter
# and check that account payment was created