fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python 3
[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
..
1452c1a
100644
(file)
--- a/
src/catalogue/tests/test_gallery.py
+++ b/
src/catalogue/tests/test_gallery.py
@@
-45,8
+45,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
+63,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
+97,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
+110,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
+129,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',