Commit 419ce509 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: test: drop unused test

parent 031198fd
......@@ -12,27 +12,6 @@ from DateTime import DateTime
class TestSlapOSAccountingScenario(TestSlapOSVirtualMasterScenarioMixin):
def test_rejectedSubscriptionScenario(self):
"""
User does not pay the subscription, which is cancelled after some time
"""
_, _, project = self.bootstrapAccountingTest()
subscription_request = self.portal.portal_catalog.getResultValue(
portal_type="Subscription Request",
aggregate__uid=project.getUid()
)
self.assertEqual(subscription_request.getSimulationState(), "cancelled")
self.assertEqual(project.getValidationState(), "invalidated")
# Ensure no unexpected object has been created
# 2 assignment
# 2 sale trade condition
# 1 subscription requests
self.assertRelatedObjectCount(project, 5)
self.checkERP5StateBeforeExit()
def test_notPaidOpenOrderScenario(self):
"""
User does not pay the subscription, which is cancelled after some time
......@@ -177,7 +156,6 @@ class TestSlapOSAccountingScenario(TestSlapOSVirtualMasterScenarioMixin):
"""
Generate many different open order
Try to ensure monthly invoices are correctly created
couscous
"""
creation_date = DateTime('2020/05/19')
with PinnedDateTime(self, creation_date):
......@@ -311,4 +289,4 @@ class TestSlapOSAccountingScenario(TestSlapOSVirtualMasterScenarioMixin):
)[0][0], (1 + len(person_list)) * 3)
with PinnedDateTime(self, creation_date + 5):
self.checkERP5StateBeforeExit()
\ No newline at end of file
self.checkERP5StateBeforeExit()
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