Make sure Pillow uses ImageFont.LAYOUT_BASIC because of https://github.com/python...
[librarian.git] / tests / test_mobi.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 from __future__ import unicode_literals
7
8 from zipfile import ZipFile
9 from lxml import html
10 from nose.tools import *
11 from librarian import DirDocProvider
12 from librarian.parser import WLDocument
13 from tests.utils import get_fixture
14
15
16 def test_transform():
17     mobi = WLDocument.from_file(
18             get_fixture('text', 'asnyk_zbior.xml'),
19             provider=DirDocProvider(get_fixture('text', ''))
20         ).as_mobi(converter_path='true').get_file()