Ejemplo n.º 1
0
    def setUp(self):
        gallery1 = ImageGallery(name='Test 1', slug='test1', sort_order=1)
        gallery1.save()

        image1 = Image(name='Image Test 1', slug='imagetest1', gallery=gallery1, sort_order=1)
        image1.save()

        image2 = Image(name='Image Test 2', slug='imagetest2', gallery=gallery1, sort_order=2)
        image2.save()

        not_yet = datetime.now() + timedelta(minutes=1)
        image3 = Image(name='Image Test 3', slug='imagetest3', gallery=gallery1, sort_order=3, release_date=not_yet)
        image3.save()
Ejemplo n.º 2
0
    def setUp(self):
        gallery1 = ImageGallery(name="Issue 1 gallery", slug="issue1", sort_order=1)
        gallery1.save()

        image1 = Image(name="Page 1", slug="page1", sort_order=1, gallery=gallery1)
        image1.save()

        image2 = Image(name="Page 2", slug="page2", sort_order=2, gallery=gallery1)
        image2.save()

        image3 = Image(name="Page 3", slug="page3", sort_order=3, gallery=gallery1)
        image3.save()

        gallery2 = ImageGallery(name="Issue 2 gallery", slug="issue2", sort_order=2)
        gallery2.save()

        image4 = Image(name="Page 4", slug="page4", sort_order=4, gallery=gallery2)
        image4.save()

        image5 = Image(name="Page 5", slug="page5", sort_order=5, gallery=gallery2)
        image5.save()

        image6 = Image(name="Page 6", slug="page6", sort_order=6, gallery=gallery2)
        image6.save()

        chapter1 = Chapter(chapter_number=1)
        chapter1.save()

        chapter2 = Chapter(chapter_number=2)
        chapter2.save()

        issue1 = Issue(issue_number=1, comic_page_gallery=gallery1, release_date=datetime.now(), chapter=chapter1)
        issue1.save()
        issue2 = Issue(issue_number=2, comic_page_gallery=gallery2, release_date=datetime.now(), chapter=chapter1)
        issue2.save()
Ejemplo n.º 3
0
    def setUp(self):
        gallery1 = ImageGallery(name="Issue 1 gallery", slug="issue1", sort_order=1)
        gallery1.save()

        gallery2 = ImageGallery(name="Issue 2 gallery", slug="issue2", sort_order=2)
        gallery2.save()

        chapter1 = Chapter(chapter_number=1)
        chapter1.save()

        chapter2 = Chapter(chapter_number=2)
        chapter2.save()

        self.issue1 = Issue(issue_number=1, comic_page_gallery=gallery1, release_date=datetime.now(), chapter=chapter1)
        self.issue1.save()
        self.issue2 = Issue(issue_number=2, comic_page_gallery=gallery2, release_date=datetime.now(), chapter=chapter1)
        self.issue2.save()
Ejemplo n.º 4
0
    def setUp(self):
        gallery1 = ImageGallery(name='Test 1', slug='test1', sort_order=1)
        gallery1.save()

        gallery2 = ImageGallery(name='Test 2', slug='test2', sort_order=2)
        gallery2.save()
Ejemplo n.º 5
0
    def setUp(self):
        gallery1 = ImageGallery(name='Test 1', slug='test1', sort_order=1)
        gallery1.save()

        image1 = Image(name='Image Test 1', slug='imagetest1', gallery=gallery1, sort_order=1)
        image1.save()