Skip to content

circulation: Support self checkout by patrons #1031

circulation: Support self checkout by patrons

circulation: Support self checkout by patrons #1031

Triggered via pull request June 6, 2024 13:56
Status Failure
Total duration 8m 32s
Artifacts

tests.yml

on: pull_request
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 14 warnings
Tests (circulation, 3.9, pypi, postgresql13, opensearch2): tests/api/circulation/test_loan_checkout.py#L1
Black format check --- /home/runner/work/invenio-app-ils/invenio-app-ils/tests/api/circulation/test_loan_checkout.py 2024-06-06 13:56:57.725510+00:00 +++ /home/runner/work/invenio-app-ils/invenio-app-ils/tests/api/circulation/test_loan_checkout.py 2024-06-06 13:59:38.516335+00:00 @@ -15,11 +15,14 @@ from flask import url_for from flask_principal import UserNeed from invenio_access.permissions import Permission from invenio_app_ils.items.api import Item -from invenio_app_ils.permissions import authenticated_user_permission, loan_checkout_permission +from invenio_app_ils.permissions import ( + authenticated_user_permission, + loan_checkout_permission, +) from tests.helpers import user_login, user_logout NEW_LOAN = { "item_pid": "CHANGE ME IN EACH TEST", "document_pid": "docid-1",
Tests (circulation, 3.9, pypi, postgresql13, opensearch2): tests/api/circulation/test_loan_checkout.py#L1
isort-check from invenio_access.permissions import Permission from invenio_app_ils.items.api import Item -from invenio_app_ils.permissions import authenticated_user_permission, loan_checkout_permission +from invenio_app_ils.permissions import ( + authenticated_user_permission, + loan_checkout_permission, +) from tests.helpers import user_login, user_logout NEW_LOAN = {
Tests (circulation, 3.9, pypi, postgresql13, opensearch2): tests/api/circulation/test_loan_checkout.py#L253
test_self_checkout assert 403 == 202 + where 403 = <WrapperTestResponse streamed [403 FORBIDDEN]>.status_code
Tests (circulation, 3.9, pypi, postgresql13, opensearch2): tests/api/circulation/test_loan_item_permissions.py#L124
test_anonymous_cannot_update_loans TypeError: loan_checkout_permission() got an unexpected keyword argument 'record'
Tests (circulation, 3.9, pypi, postgresql13, opensearch2): tests/api/circulation/test_loan_item_permissions.py#L134
test_patron_cannot_update_loans TypeError: loan_checkout_permission() got an unexpected keyword argument 'record'
Tests (circulation, 3.9, pypi, postgresql13, opensearch2): tests/api/circulation/test_loan_update.py#L68
test_loan_access_permission TypeError: loan_checkout_permission() got an unexpected keyword argument 'record'
Tests (circulation, 3.9, pypi, postgresql13, opensearch2)
Process completed with exit code 1.
Tests (circulation, 3.9, pypi, postgresql14, opensearch2)
The job was canceled because "circulation_3_9_pypi_post" failed.
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_checkout.py#L1
Black format check --- /home/runner/work/invenio-app-ils/invenio-app-ils/tests/api/circulation/test_loan_checkout.py 2024-06-06 13:56:57.363395+00:00 +++ /home/runner/work/invenio-app-ils/invenio-app-ils/tests/api/circulation/test_loan_checkout.py 2024-06-06 13:59:38.075407+00:00 @@ -15,11 +15,14 @@ from flask import url_for from flask_principal import UserNeed from invenio_access.permissions import Permission from invenio_app_ils.items.api import Item -from invenio_app_ils.permissions import authenticated_user_permission, loan_checkout_permission +from invenio_app_ils.permissions import ( + authenticated_user_permission, + loan_checkout_permission, +) from tests.helpers import user_login, user_logout NEW_LOAN = { "item_pid": "CHANGE ME IN EACH TEST", "document_pid": "docid-1",
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_checkout.py#L1
isort-check from invenio_access.permissions import Permission from invenio_app_ils.items.api import Item -from invenio_app_ils.permissions import authenticated_user_permission, loan_checkout_permission +from invenio_app_ils.permissions import ( + authenticated_user_permission, + loan_checkout_permission, +) from tests.helpers import user_login, user_logout NEW_LOAN = {
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_checkout.py#L253
test_self_checkout assert 403 == 202 + where 403 = <WrapperTestResponse streamed [403 FORBIDDEN]>.status_code
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_item_permissions.py#L124
test_anonymous_cannot_update_loans TypeError: loan_checkout_permission() got an unexpected keyword argument 'record'
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_item_permissions.py#L134
test_patron_cannot_update_loans TypeError: loan_checkout_permission() got an unexpected keyword argument 'record'
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_update.py#L68
test_loan_access_permission TypeError: loan_checkout_permission() got an unexpected keyword argument 'record'
Tests (circulation, 3.9, pypi, postgresql14, opensearch2)
Process completed with exit code 1.
Tests (ils, 3.9, pypi, postgresql13, opensearch2)
The job was canceled because "circulation_3_9_pypi_post" failed.
Tests (ils, 3.9, pypi, postgresql13, opensearch2)
The operation was canceled.
Tests (ils, 3.9, pypi, postgresql14, opensearch2)
The job was canceled because "circulation_3_9_pypi_post" failed.
Tests (ils, 3.9, pypi, postgresql14, opensearch2)
The operation was canceled.
Tests (acquisition, 3.9, pypi, postgresql13, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (acquisition, 3.9, pypi, postgresql13, opensearch2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (acquisition, 3.9, pypi, postgresql14, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (acquisition, 3.9, pypi, postgresql14, opensearch2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (document_requests, 3.9, pypi, postgresql13, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (document_requests, 3.9, pypi, postgresql13, opensearch2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (document_requests, 3.9, pypi, postgresql14, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (document_requests, 3.9, pypi, postgresql14, opensearch2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (ill, 3.9, pypi, postgresql13, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ill, 3.9, pypi, postgresql13, opensearch2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (ill, 3.9, pypi, postgresql14, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ill, 3.9, pypi, postgresql14, opensearch2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (circulation, 3.9, pypi, postgresql13, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (circulation, 3.9, pypi, postgresql13, opensearch2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/