Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Hugo Ricateau
erp5
Commits
e3587a2e
Commit
e3587a2e
authored
Oct 25, 2017
by
Cédric Le Ninivin
Committed by
Cédric Le Ninivin
Oct 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testPackingList: Add dedicated test on Causality State constraint
parent
b6eb14af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
product/ERP5/tests/testPackingList.py
product/ERP5/tests/testPackingList.py
+32
-0
No files found.
product/ERP5/tests/testPackingList.py
View file @
e3587a2e
...
...
@@ -1907,6 +1907,38 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
,
quiet
=
quiet
)
def
stepAssertCausalityStateIsNotSolvedInConsistencyMessage
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
Test that Causality State not solved appears in check consistency
"""
packing_list
=
sequence
.
get
(
'packing_list'
)
self
.
assertEqual
(
[
'Causality State is not "Solved". Please wait or take action'
+
' for causality state to reach "Solved".'
],
[
str
(
message
.
message
)
for
message
in
packing_list
.
checkConsistency
()])
def
test_20_PackingListCausalityStateConstraint
(
self
,
quiet
=
quiet
,
run
=
run_all_test
):
"""
Check that consistency takes into account the Causality State
"""
if
not
run
:
return
sequence_list
=
SequenceList
()
sequence_string
=
self
.
default_sequence
+
"""
DecreasePackingListLineQuantity
CheckPackingListIsCalculating
AssertCausalityStateIsNotSolvedInConsistencyMessage
Tic
CheckPackingListIsDiverged
AssertCausalityStateIsNotSolvedInConsistencyMessage
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
,
quiet
=
quiet
)
class
TestSolvingPackingList
(
TestPackingListMixin
,
ERP5TypeTestCase
):
quiet
=
0
...
...
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