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
11c94d96
Commit
11c94d96
authored
Sep 11, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: test slapos_crm_invalidate_suspended_regularisation_request is ok
parent
af07b492
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
...ateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
+6
-4
No files found.
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCRMAlarm.py
View file @
11c94d96
...
@@ -161,7 +161,6 @@ class TestSlapOSCRMCreateRegularisationRequestAlarm(SlapOSTestCaseMixin):
...
@@ -161,7 +161,6 @@ class TestSlapOSCRMCreateRegularisationRequestAlarm(SlapOSTestCaseMixin):
'Person_checkToCreateRegularisationRequest'
'Person_checkToCreateRegularisationRequest'
)
)
# XXX couscous
class
TestSlapOSCrmInvalidateSuspendedRegularisationRequest
(
SlapOSTestCaseMixinWithAbort
):
class
TestSlapOSCrmInvalidateSuspendedRegularisationRequest
(
SlapOSTestCaseMixinWithAbort
):
...
@@ -173,7 +172,10 @@ class TestSlapOSCrmInvalidateSuspendedRegularisationRequest(SlapOSTestCaseMixinW
...
@@ -173,7 +172,10 @@ class TestSlapOSCrmInvalidateSuspendedRegularisationRequest(SlapOSTestCaseMixinW
reference
=
"TESTREGREQ-%s"
%
new_id
,
reference
=
"TESTREGREQ-%s"
%
new_id
,
)
)
def
test_invalidateSuspendedRegularisationRequest_validated_regularisation_request
(
self
):
#################################################################
# slapos_crm_invalidate_suspended_regularisation_request
#################################################################
def
test_RegularisationRequest_invalidateIfPersonBalanceIsOk_alarm_validatedRegularisationRequest
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
=
self
.
createRegularisationRequest
()
ticket
.
validate
()
ticket
.
validate
()
self
.
tic
()
self
.
tic
()
...
@@ -181,7 +183,7 @@ class TestSlapOSCrmInvalidateSuspendedRegularisationRequest(SlapOSTestCaseMixinW
...
@@ -181,7 +183,7 @@ class TestSlapOSCrmInvalidateSuspendedRegularisationRequest(SlapOSTestCaseMixinW
slapos_crm_invalidate_suspended_regularisation_request
slapos_crm_invalidate_suspended_regularisation_request
self
.
_test_alarm
(
alarm
,
ticket
,
"RegularisationRequest_invalidateIfPersonBalanceIsOk"
)
self
.
_test_alarm
(
alarm
,
ticket
,
"RegularisationRequest_invalidateIfPersonBalanceIsOk"
)
def
test_
invalidateSuspendedRegularisationRequest_suspended_regularisation_r
equest
(
self
):
def
test_
RegularisationRequest_invalidateIfPersonBalanceIsOk_alarm_suspendedRegularisationR
equest
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
=
self
.
createRegularisationRequest
()
ticket
.
validate
()
ticket
.
validate
()
ticket
.
suspend
()
ticket
.
suspend
()
...
@@ -190,7 +192,7 @@ class TestSlapOSCrmInvalidateSuspendedRegularisationRequest(SlapOSTestCaseMixinW
...
@@ -190,7 +192,7 @@ class TestSlapOSCrmInvalidateSuspendedRegularisationRequest(SlapOSTestCaseMixinW
slapos_crm_invalidate_suspended_regularisation_request
slapos_crm_invalidate_suspended_regularisation_request
self
.
_test_alarm
(
alarm
,
ticket
,
"RegularisationRequest_invalidateIfPersonBalanceIsOk"
)
self
.
_test_alarm
(
alarm
,
ticket
,
"RegularisationRequest_invalidateIfPersonBalanceIsOk"
)
def
test_
invalidateSuspendedRegularisationRequest_invalidated_regularisation_r
equest
(
self
):
def
test_
RegularisationRequest_invalidateIfPersonBalanceIsOk_alarm_invalidatedRegularisationR
equest
(
self
):
ticket
=
self
.
createRegularisationRequest
()
ticket
=
self
.
createRegularisationRequest
()
ticket
.
validate
()
ticket
.
validate
()
ticket
.
invalidate
()
ticket
.
invalidate
()
...
...
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