def setUp(self):
     chapter_dir = os.path.join(TEST_DIR, 'test_chapters')
     chapter_factory = chapter.ChapterFactory()
     self.output_directory = os.path.join(TEST_DIR, 'epub_output')
     self.chapter_list = []
     file_list = [
         f for f in os.listdir(chapter_dir)
         if os.path.isfile(os.path.join(chapter_dir, f))
     ]
     for index, f in enumerate(file_list):
         full_name = os.path.join(chapter_dir, f)
         c = chapter_factory.create_chapter_from_file(full_name)
         self.chapter_list.append(c)
     self.chapter_titles = [
         u'Quick Practical, Tactical Tips for Presentations',
         u'Venture capital - Wikipedia, the free encyclopedia',
         u"Ben's Blog",
         u"The capture of Mosul: Terror\u2019s new headquarters | The Economist",
     ]
Ejemplo n.º 2
0
 def setUp(self):
     self.factory = chapter.ChapterFactory()
Ejemplo n.º 3
0
 def setUp(self):
     self.factory = chapter.ChapterFactory()
     self.test_image_list = []
Ejemplo n.º 4
0
 def setUp(self):
     self.factory = chapter.ChapterFactory()
     self.test_image_list = ['http://williamcember.com/media/bithex-logo-black.png',
                             'http://williamcember.com/media/icon_linkedin.png',
                             'http://williamcember.com/media/GitHub-Mark-Light-120px-plus.png',
                             'http://williamcember.com/media/icon_twitter.png']