feat(thumbnails): add cover image support with rero-invenio-thumbnails #12616
Annotations
4 errors
|
|
|
Run Test
The operation was canceled.
|
|
Run Test:
tests/ui/documents/test_documents_api.py#L181
test_document_add_cover_url
AssertionError: assert [{'content': ...ouverture=1'}] == [{'content': ...h/cover.png'}]
At index 0 diff: {'type': 'relatedResource', 'content': 'coverImage', 'url': 'http://catalogue.bnf.fr/couverture?appName=NE&idArk=ark:/12148/cb45295904f&couverture=1', 'note': 'bnf'} != {'content': 'coverImage', 'type': 'relatedResource', 'url': 'http://images.rero.ch/cover.png'}
Full diff:
[
{
'content': 'coverImage',
+ 'note': 'bnf',
'type': 'relatedResource',
- 'url': 'http://images.rero.ch/cover.png',
+ 'url': 'http://catalogue.bnf.fr/couverture?appName=NE&idArk=ark:/12148/cb45295904f&couverture=1',
},
]
|
|
Run Test:
tests/ui/documents/test_documents_api.py#L48
test_document_create
AssertionError: assert {'$schema': '...ote': 'bnf'}]} == {'$schema': '...© 1971'], ...}
Omitting 20 identical items, use -vv to show
Left contains 1 more item:
{'electronicLocator': [{'content': 'coverImage',
'note': 'bnf',
'type': 'relatedResource',
'url': 'http://catalogue.bnf.fr/couverture?appName=NE&idArk=ark:/12148/cb45295904f&couverture=1'}]}
Full diff:
{
'$schema': 'https://bib.rero.ch/schemas/documents/document-v0.0.1.json',
'adminMetadata': {
'encodingLevel': 'Minimal level',
},
'contribution': [
{
'entity': {
'authorized_access_point': 'Nebehay, Christian Michael',
'identifiedBy': {
'type': 'RERO',
'value': 'A003633163',
},
'type': 'bf:Person',
},
'role': [
'aut',
],
},
],
'copyrightDate': [
'© 1971',
],
'dimensions': [
'18 cm',
],
'editionStatement': [
{
'editionDesignation': [
{
'value': 'Di 3 ban',
},
{
'language': 'chi-hani',
'value': '第3版',
},
],
'responsibility': [
{
'value': 'Zeng Lingliang zhu bian',
},
{
'language': 'chi-hani',
'value': '曾令良主编',
},
],
},
{
'editionDesignation': [
{
'value': '
|
Loading