Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cloudooo
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
Roque
cloudooo
Commits
8372e5d0
Commit
8372e5d0
authored
Jun 13, 2011
by
Priscila Manhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor to skip tests that are expected to fail
parent
cbae451d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
cloudooo/handler/ooo/tests/testOooServer.py
cloudooo/handler/ooo/tests/testOooServer.py
+16
-9
No files found.
cloudooo/handler/ooo/tests/testOooServer.py
View file @
8372e5d0
...
...
@@ -34,6 +34,7 @@ from lxml import etree
from
types
import
DictType
from
zipfile
import
ZipFile
,
is_zipfile
from
cloudooo.tests.cloudoooTestCase
import
TestCase
,
make_suite
from
cloudooo.tests.backportUnittest
import
skip
class
TestServer
(
TestCase
):
...
...
@@ -146,13 +147,6 @@ class TestServer(TestCase):
"opendocument.text"
),
# Test export python to pdf
(
__file__
,
"py"
,
"pdf"
,
"application/pdf"
),
# Test if send a zipfile returns a document correctly
(
join
(
'data'
,
'test.zip'
),
"zip"
,
"txt"
,
"application/zip"
,
True
),
# Convert compressed html to txt
(
join
(
'data'
,
'test.zip'
),
"zip"
,
"txt"
,
"text/plain"
),
# Test export pptx to odp
(
join
(
'data'
,
'test.pptx'
),
"pptx"
,
"odp"
,
"application/vnd.oasis."
+
"opendocument.presentation"
),
]
def
testConvert
(
self
):
...
...
@@ -173,6 +167,20 @@ class TestServer(TestCase):
"""Test fail convertion of Invalid OOofiles"""
self
.
runFaultConversionList
(
self
.
FaultConversionScenarioList
())
@
skip
(
'Expected failure'
)
def
testConvertWithoutSupport
(
self
):
"""Test convertion of zip files and pptx"""
self
.
runConversionList
([
# Test if send a zipfile returns a document correctly
(
join
(
'data'
,
'test.zip'
),
"zip"
,
"txt"
,
"application/zip"
,
True
),
# Convert compressed html to txt
(
join
(
'data'
,
'test.zip'
),
"zip"
,
"txt"
,
"text/plain"
),
# Test export pptx to odp
(
join
(
'data'
,
'test.pptx'
),
"pptx"
,
"odp"
,
"application/vnd.oasis."
+
"opendocument.presentation"
),
])
def
GetMetadataScenarioList
(
self
):
return
[
# Test method getFileMetadataItemList. Without data converted
...
...
@@ -352,8 +360,7 @@ class TestServer(TestCase):
# XXX: This is a test for ERP5 Backward compatibility,
# and the support to this kind of tests will be dropped.
# XXX disable this test because LibreOffice 3.3 can open such a broken
# document.
@
skip
(
'LibreOffice 3.3 can open such a broken document and convert'
)
def
testRunGenerateMethodFailResponse
(
self
):
"""Test run_generate method with invalid document"""
data
=
open
(
join
(
'data'
,
'test.odt'
),
'r'
).
read
()[:
100
]
...
...
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