Commit fd2346a1 authored by Łukasz Nowak's avatar Łukasz Nowak

Prepare test change.

Disable obsoleted code and mark lack of implementation.
parent fe1115d0
...@@ -385,43 +385,43 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin): ...@@ -385,43 +385,43 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin):
causality_state = packing_list.getCausalityState() causality_state = packing_list.getCausalityState()
self.assertEqual('solved', causality_state) self.assertEqual('solved', causality_state)
invoice_list = packing_list.getCausalityRelatedValueList( # invoice_list = packing_list.getCausalityRelatedValueList(
portal_type='Sale Invoice Transaction') # portal_type='Sale Invoice Transaction')
self.assertEqual(1, len(invoice_list)) # self.assertEqual(1, len(invoice_list))
invoice = invoice_list[0] # invoice = invoice_list[0]
self.assertEqual('Sale Invoice Transaction', # self.assertEqual('Sale Invoice Transaction',
invoice.getPortalType()) # invoice.getPortalType())
self.assertEqual('delivered', invoice.getSimulationState()) # self.assertEqual('delivered', invoice.getSimulationState())
causality_state = invoice.getCausalityState() # causality_state = invoice.getCausalityState()
self.assertEqual('solved', causality_state) # self.assertEqual('solved', causality_state)
self.assertEqual(0, len(invoice.checkConsistency())) # self.assertEqual(0, len(invoice.checkConsistency()))
self.assertSameSet([packing_list.getRelativeUrl()], # self.assertSameSet([packing_list.getRelativeUrl()],
invoice.getCausalityList( # invoice.getCausalityList(
portal_type=self.portal.getPortalDeliveryTypeList())) # portal_type=self.portal.getPortalDeliveryTypeList()))
self.assertSameSet([invoice.getRelativeUrl()], # self.assertSameSet([invoice.getRelativeUrl()],
packing_list.getCausalityRelatedList( # packing_list.getCausalityRelatedList(
portal_type=self.portal.getPortalDeliveryTypeList())) # portal_type=self.portal.getPortalDeliveryTypeList()))
payment_list = invoice.getCausalityRelatedValueList( # payment_list = invoice.getCausalityRelatedValueList(
portal_type=self.portal.getPortalDeliveryTypeList()) # portal_type=self.portal.getPortalDeliveryTypeList())
if invoice.getTotalPrice() == 0: # if invoice.getTotalPrice() == 0:
self.assertEqual(0, len(payment_list)) # self.assertEqual(0, len(payment_list))
else: # else:
self.assertEqual(1, len(payment_list)) # self.assertEqual(1, len(payment_list))
payment = payment_list[0] # payment = payment_list[0]
self.assertEqual('Payment Transaction', # self.assertEqual('Payment Transaction',
payment.getPortalType()) # payment.getPortalType())
self.assertEqual('delivered', payment.getSimulationState()) # self.assertEqual('delivered', payment.getSimulationState())
causality_state = payment.getCausalityState() # causality_state = payment.getCausalityState()
self.assertEqual('solved', causality_state) # self.assertEqual('solved', causality_state)
self.assertEqual(0, len(payment.checkConsistency())) # self.assertEqual(0, len(payment.checkConsistency()))
self.assertSameSet([invoice.getRelativeUrl()], # self.assertSameSet([invoice.getRelativeUrl()],
payment.getCausalityList( # payment.getCausalityList(
portal_type=self.portal.getPortalDeliveryTypeList())) # portal_type=self.portal.getPortalDeliveryTypeList()))
self.assertSameSet([payment.getRelativeUrl()], # self.assertSameSet([payment.getRelativeUrl()],
invoice.getCausalityRelatedList( # invoice.getCausalityRelatedList(
portal_type=self.portal.getPortalDeliveryTypeList())) # portal_type=self.portal.getPortalDeliveryTypeList()))
self.assertEqual(-1 * payment.PaymentTransaction_getTotalPayablePrice(), # self.assertEqual(-1 * payment.PaymentTransaction_getTotalPayablePrice(),
invoice.getTotalPrice()) # invoice.getTotalPrice())
def assertOpenSaleOrderCoverage(self, person_reference): def assertOpenSaleOrderCoverage(self, person_reference):
self.login() self.login()
...@@ -643,3 +643,5 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin): ...@@ -643,3 +643,5 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin):
default_destination_section_uid=person.getUid()): default_destination_section_uid=person.getUid()):
self.assertHostingSubscriptionSimulationCoverage( self.assertHostingSubscriptionSimulationCoverage(
subscription.getObject()) subscription.getObject())
self.assertTrue(False, 'Update to aggregated accoounting')
106 107
\ No newline at end of file \ No newline at end of file
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