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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
c0c10df0
Commit
c0c10df0
authored
Oct 26, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: fixConsistency is not called anymore on Hosting Subscription
parent
d17551cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingInteractionWorkflow.py
...ents/test.erp5.testSlapOSAccountingInteractionWorkflow.py
+0
-34
No files found.
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingInteractionWorkflow.py
View file @
c0c10df0
...
...
@@ -47,40 +47,6 @@ return DateTime('%s')
def
test_HostingSubscription_fixConsistency_today_after_28
(
self
):
self
.
_test_HostingSubscription_fixConsistency
(
28
)
def
test_HostingSubscription_manageAfter
(
self
):
class
DummyTestException
(
Exception
):
pass
def
verify_fixConsistency_call
(
self
):
# Check that fixConsistency is called on instance tree
if
self
.
getRelativeUrl
().
startswith
(
'hosting_subscription_module/'
):
raise
DummyTestException
else
:
return
self
.
fixConsistency_call
()
# Replace serialize by a dummy method
HostingSubscriptionClass
=
self
.
portal
.
portal_types
.
getPortalTypeClass
(
'Hosting Subscription'
)
HostingSubscriptionClass
.
fixConsistency_call
=
HostingSubscriptionClass
.
\
fixConsistency
HostingSubscriptionClass
.
fixConsistency
=
verify_fixConsistency_call
try
:
# manage_afterAdd
self
.
assertRaises
(
DummyTestException
,
self
.
portal
.
hosting_subscription_module
.
newContent
,
portal_type
=
'Hosting Subscription'
)
# manage_afterClone
self
.
assertRaises
(
DummyTestException
,
self
.
portal
.
hosting_subscription_module
.
\
template_hosting_subscription
.
Base_createCloneDocument
,
batch_mode
=
1
)
finally
:
self
.
portal
.
portal_types
.
resetDynamicDocumentsOnceAtTransactionBoundary
()
transaction
.
commit
()
@
simulate
(
'Delivery_calculate'
,
'*args, **kwargs'
,
"""# Script body
...
...
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