X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..e8241a8162602206d754266983926890654fa5fa:/src/catalogue/test_utils.py diff --git a/src/catalogue/test_utils.py b/src/catalogue/test_utils.py index 7ed3536aa..a6e69db74 100644 --- a/src/catalogue/test_utils.py +++ b/src/catalogue/test_utils.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. # @@ -16,12 +15,11 @@ from django.conf import settings MEDIA_ROOT=tempfile.mkdtemp(prefix='djangotest_'), CATALOGUE_DONT_BUILD={'pdf', 'mobi', 'epub', 'txt', 'fb2', 'cover'}, NO_SEARCH_INDEX=True, - CELERY_ALWAYS_EAGER=True, + CELERY_TASK_ALWAYS_EAGER=True, CACHES={ 'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'}, }, SOLR=settings.SOLR_TEST, - SSIFY_RENDER=False, ) class WLTestCase(TestCase): """ @@ -74,11 +72,11 @@ def info_args(title, language=None): """ generate some keywords for comfortable BookInfoCreation """ slug = str(slugify(title)) if language is None: - language = u'pol' + language = 'pol' return { 'title': str(title), 'url': WLURI.from_slug(slug), - 'about': u"http://wolnelektury.pl/example/URI/%s" % slug, + 'about': "http://wolnelektury.pl/example/URI/%s" % slug, 'language': language, }