""" test gen_epub. """

from tmx2epub.gen_epub import gen_epub


def test_gen_epub2():
    """ test_gen_epub2. """
    from pathlib import Path
    infile = r"tests\2.tmx"
    stem = Path(infile).absolute().stem
    outfile = f"{Path(infile).absolute().parent / stem}.epub"
    assert gen_epub(infile, debug=True) == outfile

    # assert 0

[((12, 11, 12, 39), 'tmx2epub.gen_epub.gen_epub', 'gen_epub', (), '', False, 'from tmx2epub.gen_epub import gen_epub\n'), ((10, 11, 10, 23), 'pathlib.Path', 'Path', ({(10, 16, 10, 22): 'infile'}, {}), '(infile)', False, 'from pathlib import Path\n'), ((11, 17, 11, 29), 'pathlib.Path', 'Path', ({(11, 22, 11, 28): 'infile'}, {}), '(infile)', False, 'from pathlib import Path\n')]