From c52c45d3e4ba65192921a6711a94f40828283a8a Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Mon, 30 Jul 2018 10:37:21 +0000 Subject: [PATCH] publish muk_converter - 11.0 --- muk_converter/tests/test_converter.py | 10 +++++++--- muk_converter/tests/test_unoconv.py | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/muk_converter/tests/test_converter.py b/muk_converter/tests/test_converter.py index afd39c4..f1fd914 100644 --- a/muk_converter/tests/test_converter.py +++ b/muk_converter/tests/test_converter.py @@ -19,6 +19,7 @@ import os import logging +import unittest from odoo.tests import common @@ -37,15 +38,18 @@ class ConverterTestCase(common.TransactionCase): def test_formats(self): self.assertTrue(converter.formats()) - + + @unittest.skipIf(os.environ.get('TRAVIS', False), "Skipped for Travis CI") def test_convert(self): with open(os.path.join(_path, 'tests/data', 'sample.png'), 'rb') as file: self.assertTrue(converter.convert('sample.png', file.read(), "pdf")) - + + @unittest.skipIf(os.environ.get('TRAVIS', False), "Skipped for Travis CI") def test_convert2pdf(self): with open(os.path.join(_path, 'tests/data', 'sample.png'), 'rb') as file: self.assertTrue(converter.convert2pdf('sample.png', file.read())) - + + @unittest.skipIf(os.environ.get('TRAVIS', False), "Skipped for Travis CI") def test_convert2html(self): with open(os.path.join(_path, 'tests/data', 'sample.png'), 'rb') as file: self.assertTrue(converter.convert2html('sample.png', file.read())) \ No newline at end of file diff --git a/muk_converter/tests/test_unoconv.py b/muk_converter/tests/test_unoconv.py index 4cfe05a..26e0ab1 100644 --- a/muk_converter/tests/test_unoconv.py +++ b/muk_converter/tests/test_unoconv.py @@ -19,6 +19,7 @@ import os import logging +import unittest from odoo.tests import common @@ -34,7 +35,8 @@ class UnoconvTestCase(common.TransactionCase): def tearDown(self): super(UnoconvTestCase, self).tearDown() - + + @unittest.skipIf(os.environ.get('TRAVIS', False), "Skipped for Travis CI") def test_convert_binary(self): with open(os.path.join(_path, 'tests/data', 'sample.png'), 'rb') as file: self.assertTrue(unoconv.convert_binary(file.read()))