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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
a8daf7f8
Commit
a8daf7f8
authored
Jun 24, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testSha{Cache,Dir}: decorate broken asserts instead of whole test cases
parent
7f73b507
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py
bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py
+2
-3
bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py
bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py
+2
-3
No files found.
bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py
View file @
a8daf7f8
...
...
@@ -132,7 +132,6 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
self
.
assertEquals
(
'published'
,
document2
.
getValidationState
())
self
.
assertEquals
(
'archived'
,
document
.
getValidationState
())
@
expectedFailure
def
test_put_file_twice_no_tic
(
self
):
self
.
postFile
()
self
.
commit
()
...
...
@@ -142,5 +141,5 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
document_list
=
self
.
portal
.
portal_catalog
(
reference
=
self
.
key
)
self
.
assertEqual
(
2
,
len
(
document_list
))
self
.
assertEqual
(
sorted
([
'archived'
,
'published'
]),
sorted
([
q
.
getValidationState
()
for
q
in
document_list
]
))
expectedFailure
(
self
.
assertEqual
)(
sorted
([
'archived'
,
'published'
]),
sorted
(
q
.
getValidationState
()
for
q
in
document_list
))
bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py
View file @
a8daf7f8
...
...
@@ -163,7 +163,6 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
self
.
assertEquals
(
1
,
len
(
information_list
))
self
.
assertEquals
(
json
.
dumps
(
information_list
[
0
]),
self
.
data
)
@
expectedFailure
def
test_post_information_more_than_once_no_tic
(
self
):
"""
Check if posting information is working.
...
...
@@ -174,8 +173,8 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
self
.
postInformation
()
self
.
tic
()
self
.
assertEqual
(
1
,
self
.
portal
.
portal_catalog
.
countResults
(
reference
=
self
.
key
)[
0
][
0
])
expectedFailure
(
self
.
assertEqual
)(
1
,
self
.
portal
.
portal_catalog
.
countResults
(
reference
=
self
.
key
)[
0
][
0
])
data_set
=
self
.
portal
.
portal_catalog
.
getResultValue
(
reference
=
self
.
key
)
self
.
assertEqual
(
self
.
key
,
data_set
.
getReference
())
...
...
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