X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..292be7b4adfea60105ba78d74ace7425eb7a4284:/src/catalogue/tests/test_tags.py?ds=inline
diff --git a/src/catalogue/tests/test_tags.py b/src/catalogue/tests/test_tags.py
index 771778246..92845e228 100644
--- a/src/catalogue/tests/test_tags.py
+++ b/src/catalogue/tests/test_tags.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
@@ -78,15 +77,15 @@ class TagRelatedTagsTests(WLTestCase):
author = PersonStub(("Common",), "Man")
gchild_info = BookInfoStub(author=author, genre="GchildGenre", epoch='Epoch', kind="Kind",
- **info_args(u"GChild"))
+ **info_args("GChild"))
child1_info = BookInfoStub(author=author, genre="ChildGenre", epoch='Epoch', kind="ChildKind",
parts=[gchild_info.url],
- **info_args(u"Child1"))
+ **info_args("Child1"))
child2_info = BookInfoStub(author=author, genre="ChildGenre", epoch='Epoch', kind="ChildKind",
- **info_args(u"Child2"))
+ **info_args("Child2"))
parent_info = BookInfoStub(author=author, genre="Genre", epoch='Epoch', kind="Kind",
parts=[child1_info.url, child2_info.url],
- **info_args(u"Parent"))
+ **info_args("Parent"))
for info in gchild_info, child1_info, child2_info, parent_info:
book_text = """
@@ -97,8 +96,9 @@ class TagRelatedTagsTests(WLTestCase):
""" % info.title
book = models.Book.from_text_and_meta(
- ContentFile(book_text.encode('utf-8')),
- info)
+ ContentFile(book_text.encode('utf-8')),
+ info
+ )
book.save()
tag_empty = models.Tag(name='Empty tag', slug='empty', category='author')
@@ -183,7 +183,7 @@ class CleanTagRelationTests(WLTestCase):
WLTestCase.setUp(self)
author = PersonStub(("Common",), "Man")
- book_info = BookInfoStub(author=author, genre="G", epoch='E', kind="K", **info_args(u"Book"))
+ book_info = BookInfoStub(author=author, genre="G", epoch='E', kind="K", **info_args("Book"))
book_text = """
ThemeAla ma kota
@@ -220,7 +220,7 @@ class TestIdenticalTag(WLTestCase):
WLTestCase.setUp(self)
author = PersonStub((), "Tag")
- self.book_info = BookInfoStub(author=author, genre="tag", epoch='tag', kind="tag", **info_args(u"tag"))
+ self.book_info = BookInfoStub(author=author, genre="tag", epoch='tag', kind="tag", **info_args("tag"))
self.book_text = """
@@ -263,10 +263,10 @@ class BookTagsTests(WLTestCase):
author2 = PersonStub(("Jim",), "Lazy")
child_info = BookInfoStub(authors=(author1, author2), genre="ChildGenre", epoch='Epoch', kind="ChildKind",
- **info_args(u"Child"))
+ **info_args("Child"))
parent_info = BookInfoStub(author=author1, genre="Genre", epoch='Epoch', kind="Kind",
parts=[child_info.url],
- **info_args(u"Parent"))
+ **info_args("Parent"))
for info in child_info, parent_info:
book_text = """