fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cover download button.
[redakcja.git]
/
src
/
catalogue
/
tests
/
test_gallery.py
diff --git
a/src/catalogue/tests/test_gallery.py
b/src/catalogue/tests/test_gallery.py
index
4b8ea3f
..
32c0e0a
100644
(file)
--- a/
src/catalogue/tests/test_gallery.py
+++ b/
src/catalogue/tests/test_gallery.py
@@
-1,5
+1,3
@@
-# -*- coding: utf-8 -*-
-#
# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
@@
-45,8
+43,6
@@
class GalleryAppendTests(TestCase):
c.gallery_start = 3
c.save()
c.gallery_start = 3
c.save()
- print "gallery starts:",self.book2[0].gallery_start, self.book2[1].gallery_start
-
self.make_gallery(self.book1, {
'1-0001_1l' : 'aa',
'1-0001_2r' : 'bb',
self.make_gallery(self.book1, {
'1-0001_1l' : 'aa',
'1-0001_2r' : 'bb',
@@
-65,7
+61,6
@@
class GalleryAppendTests(TestCase):
files = listdir(join(self.scandir, self.book1.gallery))
files.sort()
files = listdir(join(self.scandir, self.book1.gallery))
files.sort()
- print files
self.assertEqual(files, [
'1-0001_1l',
'1-0001_2r',
self.assertEqual(files, [
'1-0001_1l',
'1-0001_2r',
@@
-100,7
+95,6
@@
class GalleryAppendTests(TestCase):
files = listdir(join(self.scandir, self.book1.gallery))
files.sort()
files = listdir(join(self.scandir, self.book1.gallery))
files.sort()
- print files
self.assertEqual(files, [
'0-0001_1l',
'0-0001_2r',
self.assertEqual(files, [
'0-0001_1l',
'0-0001_2r',
@@
-114,7
+108,6
@@
class GalleryAppendTests(TestCase):
def test_none_indexed(self):
def test_none_indexed(self):
- import nose.tools
self.book2 = Book.create(self.user, 'book 2', slug='book2')
self.make_gallery(self.book1, {
'1-0001_1l' : 'aa',
self.book2 = Book.create(self.user, 'book 2', slug='book2')
self.make_gallery(self.book1, {
'1-0001_1l' : 'aa',
@@
-134,7
+127,6
@@
class GalleryAppendTests(TestCase):
files = listdir(join(self.scandir, self.book1.gallery))
files.sort()
files = listdir(join(self.scandir, self.book1.gallery))
files.sort()
- print files
self.assertEqual(files, [
'0-1-0001_1l',
'0-1-0001_2r',
self.assertEqual(files, [
'0-1-0001_1l',
'0-1-0001_2r',