Commit 5487decd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use EPR5 compatibility API to convert files too.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42570 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent da4b97ac
...@@ -68,9 +68,11 @@ class TestAllFormatsERP5Compatibility(CloudoooTestCase): ...@@ -68,9 +68,11 @@ class TestAllFormatsERP5Compatibility(CloudoooTestCase):
fault_list = [] fault_list = []
for extension, format in extension_list: for extension, format in extension_list:
try: try:
data_output = self.proxy.convertFile(encodestring(data), data_output = self.proxy.run_generate(filename,
source_format, encodestring(data),
extension) None,
extension,
mime_type)
magic_result = file_detector.from_buffer(decodestring(data_output)) magic_result = file_detector.from_buffer(decodestring(data_output))
file_is_empty = magic_result.endswith(": empty") file_is_empty = magic_result.endswith(": empty")
if file_is_empty: if file_is_empty:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment