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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Iliya Manolov
erp5
Commits
345d5e04
Commit
345d5e04
authored
Apr 21, 2016
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: runs sequence tests quietly by default
parent
8ebe471a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5Type/tests/Sequence.py
product/ERP5Type/tests/Sequence.py
+4
-4
No files found.
product/ERP5Type/tests/Sequence.py
View file @
345d5e04
...
@@ -75,7 +75,7 @@ class Step:
...
@@ -75,7 +75,7 @@ class Step:
self
.
_required
=
required
self
.
_required
=
required
self
.
_max_replay
=
max_replay
self
.
_max_replay
=
max_replay
def
play
(
self
,
context
,
sequence
=
None
,
quiet
=
0
):
def
play
(
self
,
context
,
sequence
=
None
,
quiet
=
1
):
method_name
=
'step'
+
self
.
_method_name
method_name
=
'step'
+
self
.
_method_name
method
=
getattr
(
context
,
method_name
)
method
=
getattr
(
context
,
method_name
)
# We can in same cases replay many times the same step,
# We can in same cases replay many times the same step,
...
@@ -116,7 +116,7 @@ class Sequence:
...
@@ -116,7 +116,7 @@ class Sequence:
line_list
.
append
(
' %s'
%
step
.
_method_name
)
line_list
.
append
(
' %s'
%
step
.
_method_name
)
return
'
\
n
'
.
join
(
line_list
)
return
'
\
n
'
.
join
(
line_list
)
def
play
(
self
,
context
,
sequence
=
None
,
sequence_number
=
0
,
quiet
=
0
):
def
play
(
self
,
context
,
sequence
=
None
,
sequence_number
=
0
,
quiet
=
1
):
if
not
quiet
:
if
not
quiet
:
if
self
.
_played_index
==
0
:
if
self
.
_played_index
==
0
:
ZopeTestCase
.
_print
(
'
\
n
Starting New Sequence %i... '
%
sequence_number
)
ZopeTestCase
.
_print
(
'
\
n
Starting New Sequence %i... '
%
sequence_number
)
...
@@ -146,7 +146,7 @@ class Sequence:
...
@@ -146,7 +146,7 @@ class Sequence:
def
setdefault
(
self
,
key
,
default
=
None
):
def
setdefault
(
self
,
key
,
default
=
None
):
return
self
.
_dict
.
setdefault
(
key
,
default
)
return
self
.
_dict
.
setdefault
(
key
,
default
)
def
__call__
(
self
,
sequence_string
,
sequence_number
=
0
,
quiet
=
0
):
def
__call__
(
self
,
sequence_string
,
sequence_number
=
0
,
quiet
=
1
):
"""
"""
add some steps and directly runs them, this allows to easily write
add some steps and directly runs them, this allows to easily write
such code when sequence are unable to handle too complex cases :
such code when sequence are unable to handle too complex cases :
...
@@ -199,7 +199,7 @@ class SequenceList:
...
@@ -199,7 +199,7 @@ class SequenceList:
self
.
addSequence
(
sequence
)
self
.
addSequence
(
sequence
)
return
sequence
return
sequence
def
play
(
self
,
context
,
quiet
=
0
):
def
play
(
self
,
context
,
quiet
=
1
):
i
=
1
i
=
1
for
sequence
in
self
.
_sequence_list
:
for
sequence
in
self
.
_sequence_list
:
sequence
.
_played_index
=
0
sequence
.
_played_index
=
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