Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
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
Hide 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(
transaction
.
commit
()
self
.
tic
()
# 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
# as an additional catalog keyword
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.
self
.
assertEqual
(
len
(
rule_tool
.
searchRuleList
(
self
.
sm
,
**
kw
)),
1
)
# 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