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
Léo-Paul Géneau
erp5
Commits
7bd4e4af
Commit
7bd4e4af
authored
Oct 18, 2011
by
Leonardo Rochael Almeida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken test
parent
4c170f69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
product/ERP5/tests/testRule.py
product/ERP5/tests/testRule.py
+3
-2
No files found.
product/ERP5/tests/testRule.py
View file @
7bd4e4af
...
@@ -368,11 +368,12 @@ return context.generatePredicate(
...
@@ -368,11 +368,12 @@ return context.generatePredicate(
transaction
.
commit
()
transaction
.
commit
()
self
.
tic
()
self
.
tic
()
# Now since the rule has a trade_phase
# Now since the rule has a trade_phase
self
.
assertEqual
(
delivery_rule
.
getTradePhaseList
(),
[
'default/delivery'
])
trade_phase_list
=
delivery_rule
.
getTradePhaseList
()
self
.
assertEqual
(
trade_phase_list
,
[
'default/delivery'
])
# then it should be possible to find it by passing this trade_phase
# then it should be possible to find it by passing this trade_phase
# as an additional catalog keyword
# as an additional catalog keyword
kw
=
{
'trade_phase_relative_url'
:
kw
=
{
'trade_phase_relative_url'
:
[
'trade_phase/'
+
path
for
path
in
delivery
.
getTradePhaseList
()
]}
[
'trade_phase/'
+
path
for
path
in
trade_phase_list
]}
# XXX-Leo: Fugly catalog syntax for category search above.
# XXX-Leo: Fugly catalog syntax for category search above.
self
.
assertEqual
(
len
(
rule_tool
.
searchRuleList
(
self
.
sm
,
**
kw
)),
1
)
self
.
assertEqual
(
len
(
rule_tool
.
searchRuleList
(
self
.
sm
,
**
kw
)),
1
)
# and also not to match it if we pass a different trade_phase
# and also not to match it if we pass a different trade_phase
...
...
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