# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from os.path import abspath, dirname, join
import tempfile
from traceback import extract_stack
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from os.path import abspath, dirname, join
import tempfile
from traceback import extract_stack
from django.test import TestCase
from django.test.utils import override_settings
from slugify import slugify
from librarian import WLURI
from django.test import TestCase
from django.test.utils import override_settings
from slugify import slugify
from librarian import WLURI
- 'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'},
- },
- SOLR=settings.SOLR_TEST,
+ 'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'},
+ },
def __init__(self, first_names, last_name):
self.first_names = first_names
def __init__(self, first_names, last_name):
self.first_names = first_names
_empty_fields = ['cover_url', 'variant_of']
# allow single definition for multiple-value fields
_salias = {
_empty_fields = ['cover_url', 'variant_of']
# allow single definition for multiple-value fields
_salias = {
- 'url': WLURI.from_slug(slug),
- 'about': u"http://wolnelektury.pl/example/URI/%s" % slug,
+ 'url': WLURI(slug),
+ 'about': "http://wolnelektury.pl/example/URI/%s" % slug,