Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos.core
Commits
419ce509
Commit
419ce509
authored
Feb 23, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: test: drop unused test
parent
031198fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5AccountingScenario.py
..._components/test.erp5.testSlapOSERP5AccountingScenario.py
+1
-23
No files found.
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5AccountingScenario.py
View file @
419ce509
...
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment