collections: added task to compute num of records #5573
Annotations
8 errors
Python / Tests (3.9, postgresql14, opensearch2):
tests/services/test_collections_service.py#L193
test_collections_results
AssertionError: assert not [('change', [7, 'links', 'search'], ('/api/communities/blr/records', '/api/collections/7/records')), ('change', [8, 'links', 'search'], ('/api/communities/blr/records', '/api/collections/8/records'))]
+ where [('change', [7, 'links', 'search'], ('/api/communities/blr/records', '/api/collections/7/records')), ('change', [8, 'links', 'search'], ('/api/communities/blr/records', '/api/collections/8/records'))] = list(<generator object diff.<locals>._diff_recursive at 0x7f0ea6071740>)
+ where <generator object diff.<locals>._diff_recursive at 0x7f0ea6071740> = <function diff at 0x7f0ebfb69b80>({'root': 7, 7: {'breadcrumbs': [{'link': '/communities/blr/collections/tree-1/collection-1', 'title': 'Collection 1'}]...ks': {'search': '/api/communities/blr/records', 'self_html': '/communities/blr/collections/tree-1/collection-2'}, ...}}, {'root': 7, 7: {'breadcrumbs': [{'link': '/communities/blr/collections/tree-1/collection-1', 'title': 'Collection 1'}]...inks': {'search': '/api/collections/8/records', 'self_html': '/communities/blr/collections/tree-1/collection-2'}, ...}})
+ where <function diff at 0x7f0ebfb69b80> = dictdiffer.diff
|
Python / Tests (3.9, postgresql14, opensearch2):
invenio_rdm_records/ext.py#L1
isort-check
from invenio_records_resources.resources.files import FileResource
from . import config
+from .collections.resources.config import CollectionsResourceConfig
from .collections.resources.resource import CollectionsResource
-from .collections.resources.config import CollectionsResourceConfig
from .collections.services.config import CollectionServiceConfig
from .collections.services.service import CollectionsService
from .oaiserver.resources.config import OAIPMHServerResourceConfig
|
Python / Tests (3.9, postgresql14, opensearch2):
invenio_rdm_records/views.py#L1
Black format check
--- /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/views.py 2024-10-25 16:11:28.649422+00:00
+++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/views.py 2024-10-25 16:33:44.236314+00:00
@@ -101,9 +101,10 @@
def create_iiif_bp(app):
"""Create IIIF blueprint."""
ext = app.extensions["invenio-rdm-records"]
return ext.iiif_resource.as_blueprint()
+
def create_collections_bp(app):
"""Create collections blueprint."""
ext = app.extensions["invenio-rdm-records"]
return ext.collections_resource.as_blueprint()
|
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/services/test_collections_service.py#L193
test_collections_results
AssertionError: assert not [('change', [7, 'links', 'search'], ('/api/communities/blr/records', '/api/collections/7/records')), ('change', [8, 'links', 'search'], ('/api/communities/blr/records', '/api/collections/8/records'))]
+ where [('change', [7, 'links', 'search'], ('/api/communities/blr/records', '/api/collections/7/records')), ('change', [8, 'links', 'search'], ('/api/communities/blr/records', '/api/collections/8/records'))] = list(<generator object diff.<locals>._diff_recursive at 0x7f57e8193bc0>)
+ where <generator object diff.<locals>._diff_recursive at 0x7f57e8193bc0> = <function diff at 0x7f58000c53a0>({'root': 7, 7: {'breadcrumbs': [{'link': '/communities/blr/collections/tree-1/collection-1', 'title': 'Collection 1'}]...ks': {'search': '/api/communities/blr/records', 'self_html': '/communities/blr/collections/tree-1/collection-2'}, ...}}, {'root': 7, 7: {'breadcrumbs': [{'link': '/communities/blr/collections/tree-1/collection-1', 'title': 'Collection 1'}]...inks': {'search': '/api/collections/8/records', 'self_html': '/communities/blr/collections/tree-1/collection-2'}, ...}})
+ where <function diff at 0x7f58000c53a0> = dictdiffer.diff
|
Python / Tests (3.12, postgresql14, opensearch2):
invenio_rdm_records/ext.py#L1
isort-check
from invenio_records_resources.resources.files import FileResource
from . import config
+from .collections.resources.config import CollectionsResourceConfig
from .collections.resources.resource import CollectionsResource
-from .collections.resources.config import CollectionsResourceConfig
from .collections.services.config import CollectionServiceConfig
from .collections.services.service import CollectionsService
from .oaiserver.resources.config import OAIPMHServerResourceConfig
|
Python / Tests (3.12, postgresql14, opensearch2):
invenio_rdm_records/views.py#L1
Black format check
--- /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/views.py 2024-10-25 16:11:27.305880+00:00
+++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/views.py 2024-10-25 16:34:59.669774+00:00
@@ -101,9 +101,10 @@
def create_iiif_bp(app):
"""Create IIIF blueprint."""
ext = app.extensions["invenio-rdm-records"]
return ext.iiif_resource.as_blueprint()
+
def create_collections_bp(app):
"""Create collections blueprint."""
ext = app.extensions["invenio-rdm-records"]
return ext.collections_resource.as_blueprint()
|
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
|