Commit 918f67fb authored by Sebastien Robin's avatar Sebastien Robin

added the test with almost no tic


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3310 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b4a2a2d1
......@@ -1578,35 +1578,6 @@ class TestOrder(TestOrderMixin,ERP5TypeTestCase):
'
sequence_list.addSequenceString(sequence_string)
# XXX Does not work yet
# Test to confirm order without doing any tic
# Except after creating organisations
# sequence_string = '\
# CreateOrganisation1 \
# CreateOrganisation2 \
# Tic \
# CreateOrder \
# SetOrderProfile \
# CreateVariatedResource \
# CreateOrderLine \
# SetOrderLineResource \
# SetOrderLineDefaultValues \
# SetOrderLineFullVCL \
# CompleteOrderLineMatrix \
# CreateNotVariatedResource \
# CreateOrderLine \
# SetOrderLineResource \
# SetOrderLineDefaultValues \
# OrderOrder \
# CheckDeliveryBuilding \
# ConfirmOrder \
# Tic \
# Tic \
# CheckDeliveryBuilding \
# '
# sequence_list.addSequenceString(sequence_string)
# Test with a order with 2 lines and the same not variated resource
sequence_string = '\
CreateOrganisation1 \
......@@ -1660,6 +1631,45 @@ class TestOrder(TestOrderMixin,ERP5TypeTestCase):
sequence_list.play(self)
def test_16_deliveryBuilderWithNoTic(self, quiet=0, run=run_all_test):
"""
Test generation of delivery list with
only a few tic
"""
if not run: return
sequence_list = SequenceList()
# XXX Does not work yet
# Test to confirm order without doing any tic
# Except after creating organisations
sequence_string = '\
CreateOrganisation1 \
CreateOrganisation2 \
Tic \
CreateOrder \
SetOrderProfile \
CreateVariatedResource \
CreateOrderLine \
SetOrderLineResource \
SetOrderLineDefaultValues \
SetOrderLineFullVCL \
CompleteOrderLineMatrix \
CreateNotVariatedResource \
CreateOrderLine \
SetOrderLineResource \
SetOrderLineDefaultValues \
OrderOrder \
CheckDeliveryBuilding \
ConfirmOrder \
Tic \
Tic \
CheckDeliveryBuilding \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
# def test_16_packingListOrderAcquisition(self, quiet=0, run=run_all_test):
# """
# Test if packing list get some properties from order.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment