Exemplo n.º 1
0
 def setup_method(self):
     super().setup_method()
     self.series = Series.objects.create(title='series',
                                         cover=get_test_image())
     self.series.chapters.create(title='chapter',
                                 file=get_valid_zip_file(),
                                 number=1)
Exemplo n.º 2
0
 def test_file(self):
     chapter = self.create_chapter()
     chapter.file = get_valid_zip_file()
     chapter.save()
     assert chapter.pages.count() == 1
     assert chapter.zip()