Browse Source

publish muk_thumbnails - 11.0

pull/6/head
MuK IT GmbH 6 years ago
parent
commit
cf734f8e3d
  1. 7
      muk_thumbnails/tests/test_thumbnail.py

7
muk_thumbnails/tests/test_thumbnail.py

@ -19,6 +19,7 @@
import os import os
import logging import logging
import unittest
from odoo.tests import common from odoo.tests import common
@ -34,11 +35,13 @@ class ThumbnailTestCase(common.TransactionCase):
def tearDown(self): def tearDown(self):
super(ThumbnailTestCase, self).tearDown() super(ThumbnailTestCase, self).tearDown()
@unittest.skipIf(os.environ.get('TRAVIS', False), "Skipped for Travis CI")
def test_thumbnail_unoconv(self): def test_thumbnail_unoconv(self):
with open(os.path.join(_path, 'tests/data', 'sample.xls'), 'rb') as file: with open(os.path.join(_path, 'tests/data', 'sample.xls'), 'rb') as file:
self.assertTrue(thumbnail.create_thumbnail(binary=file.read(), filename='sample.xls')) self.assertTrue(thumbnail.create_thumbnail(binary=file.read(), filename='sample.xls'))
@unittest.skipIf(os.environ.get('TRAVIS', False), "Skipped for Travis CI")
def test_thumbnail_video(self): def test_thumbnail_video(self):
with open(os.path.join(_path, 'tests/data', 'sample.mp4'), 'rb') as file: with open(os.path.join(_path, 'tests/data', 'sample.mp4'), 'rb') as file:
self.assertTrue(thumbnail.create_thumbnail(binary=file.read(), filename='sample.mp4')) self.assertTrue(thumbnail.create_thumbnail(binary=file.read(), filename='sample.mp4'))
Loading…
Cancel
Save