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
francois
erp5
Commits
974c55e9
Commit
974c55e9
authored
Aug 01, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve verbosity of the tests to help understand what it is wrong.
parent
f29bb1da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
product/ERP5OOo/tests/testDms.py
product/ERP5OOo/tests/testDms.py
+17
-3
No files found.
product/ERP5OOo/tests/testDms.py
View file @
974c55e9
...
@@ -2054,10 +2054,22 @@ return 1
...
@@ -2054,10 +2054,22 @@ return 1
image_document_image_size_no_quality
,
image_document_file_size_no_quality
=
self
.
getURLSizeList
(
url
,
**
convert_kw
)
image_document_image_size_no_quality
,
image_document_file_size_no_quality
=
self
.
getURLSizeList
(
url
,
**
convert_kw
)
# check file sizes
# check file sizes
self
.
assertTrue
(
image_document_file_size_100p
>
image_document_file_size_no_quality
and
\
self
.
assertTrue
(
image_document_file_size_100p
>
image_document_file_size_no_quality
and
\
image_document_file_size_no_quality
>
image_document_file_size_5p
)
image_document_file_size_no_quality
>
image_document_file_size_5p
,
"%s should be more then %s and %s should be more them %s"
%
\
(
image_document_file_size_100p
,
image_document_file_size_no_quality
,
image_document_file_size_no_quality
,
image_document_file_size_5p
)
)
# no matter of quality image sizes whould be the same
# no matter of quality image sizes whould be the same
self
.
assertTrue
(
image_document_image_size_100p
==
image_document_image_size_5p
and
\
self
.
assertTrue
(
image_document_image_size_100p
==
image_document_image_size_5p
and
\
image_document_image_size_5p
==
image_document_image_size_no_quality
)
image_document_image_size_5p
==
image_document_image_size_no_quality
,
"%s should be equals to %s and %s should be equals to %s"
%
\
(
image_document_image_size_100p
,
image_document_image_size_5p
,
image_document_image_size_5p
,
image_document_image_size_no_quality
)
)
def
test_checkConversionFormatPermission
(
self
):
def
test_checkConversionFormatPermission
(
self
):
"""
"""
...
@@ -2541,7 +2553,9 @@ class TestDocumentPerformance(TestDocumentMixin):
...
@@ -2541,7 +2553,9 @@ class TestDocumentPerformance(TestDocumentMixin):
after
=
time
.
time
()
after
=
time
.
time
()
req_time
=
(
after
-
before
)
req_time
=
(
after
-
before
)
# we should have image converted in less than 20s
# we should have image converted in less than 20s
self
.
assertTrue
(
req_time
<
30.0
)
self
.
assertTrue
(
req_time
<
30.0
,
"Conversion took %s seconds and it is not less them 30.0 seconds"
%
\
req_time
)
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
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