fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests back up
[wolnelektury.git]
/
src
/
catalogue
/
test_utils.py
diff --git
a/src/catalogue/test_utils.py
b/src/catalogue/test_utils.py
index
f5d98ca
..
af3659f
100644
(file)
--- a/
src/catalogue/test_utils.py
+++ b/
src/catalogue/test_utils.py
@@
-13,7
+13,7
@@
from librarian import WLURI
@override_settings(
MEDIA_ROOT=tempfile.mkdtemp(prefix='djangotest_'),
@override_settings(
MEDIA_ROOT=tempfile.mkdtemp(prefix='djangotest_'),
- CATALOGUE_DONT_BUILD={'pdf', 'mobi', 'epub', 'txt', 'fb2', 'cover'},
+ CATALOGUE_DONT_BUILD={'pdf', 'mobi', 'epub', 'txt', 'fb2', 'cover'
, 'html_nonotes', 'references'
},
NO_SEARCH_INDEX=True,
CELERY_TASK_ALWAYS_EAGER=True,
CACHES={
NO_SEARCH_INDEX=True,
CELERY_TASK_ALWAYS_EAGER=True,
CACHES={
@@
-38,10
+38,13
@@
class PersonStub:
class BookInfoStub:
class BookInfoStub:
- _empty_fields = ['cover_url', 'variant_of']
+ _empty_fields = ['cover_url', 'variant_of'
, 'license'
]
# allow single definition for multiple-value fields
_salias = {
'authors': 'author',
# allow single definition for multiple-value fields
_salias = {
'authors': 'author',
+ 'genres': 'genre',
+ 'epochs': 'epoch',
+ 'kinds': 'kind',
}
def __init__(self, **kwargs):
}
def __init__(self, **kwargs):