From 7444f22e4930b17e7bf7d693762a512d0ca782df Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 May 2023 15:47:46 +0530 Subject: [PATCH] Fix polish test: now need option to allow local files from outside root when building the test book --- src/calibre/ebooks/oeb/polish/tests/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/polish/tests/base.py b/src/calibre/ebooks/oeb/polish/tests/base.py index db8396076b..91be668ef9 100644 --- a/src/calibre/ebooks/oeb/polish/tests/base.py +++ b/src/calibre/ebooks/oeb/polish/tests/base.py @@ -70,7 +70,7 @@ def get_simple_book(fmt='epub'): with open(x, 'wb') as f: f.write(raw.encode('utf-8')) build_book(x, ans, args=[ - '--level1-toc=//h:h2', '--language=en', '--authors=Kovid Goyal', '--cover=lt.png']) + '--level1-toc=//h:h2', '--language=en', '--authors=Kovid Goyal', '--cover=lt.png', '--allow-local-files-outside-root']) return ans @@ -85,7 +85,7 @@ def get_split_book(fmt='epub'): with open(x, 'wb') as f: f.write(raw.encode('utf-8')) build_book(x, ans, args=['--level1-toc=//h:h2', '--language=en', '--authors=Kovid Goyal', - '--cover=' + I('lt.png')]) + '--cover=' + I('lt.png'), '--allow-local-files-outside-root']) finally: os.remove(x) return ans