mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP]pms: payment type test cases
This commit is contained in:
@@ -8,3 +8,31 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user