Skip to content

self-checkout: use dedicated endpoints #1104

self-checkout: use dedicated endpoints

self-checkout: use dedicated endpoints #1104

Triggered via pull request October 28, 2024 18:21
Status Failure
Total duration 14m 13s
Artifacts

tests.yml

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

Annotations

13 errors
Tests (ill, 3.9, pypi, postgresql14, opensearch2): tests/api/ill/test_ill_brw_reqs_patron_loan_create_action.py#L170
test_brwreq_create_loan_succeeds AssertionError: assert '2018-07-28' == '2024-11-02' - 2024-11-02 + 2018-07-28
Tests (ill, 3.9, pypi, postgresql14, opensearch2): tests/api/ill/test_ill_brw_reqs_patron_loan_extension_actions.py#L173
test_brwreq_accept_decline_extension_only_librarian assert 400 == 200 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests (ill, 3.9, pypi, postgresql14, opensearch2): tests/api/ill/test_ill_brw_reqs_patron_loan_extension_actions.py#L247
test_brwreq_accept_extension_success assert 400 == 200 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests (ill, 3.9, pypi, postgresql14, opensearch2)
Process completed with exit code 1.
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-10-28 18:21:36.339590+00:00 +++ /home/runner/work/invenio-app-ils/invenio-app-ils/tests/api/circulation/test_loan_checkout.py 2024-10-28 18:24:18.099631+00:00 @@ -331,11 +331,10 @@ params["item_pid"] = dict(type="pitmid", value=item_pid) params["patron_pid"] = str(patron.id) params["transaction_user_pid"] = str(patron.id) return client.post(url, headers=json_headers, data=json.dumps(params)) - url = url_for("invenio_app_ils_circulation.loan_self_checkout") app.config["ILS_SELF_CHECKOUT_ENABLED"] = False # test a logged in user cannot self-checkout when the feature is disabled
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_checkout.py#L63
test_librarian_can_checkout_item_for_user assert 400 == 202 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_checkout.py#L104
test_force_checkout_specific_permissions assert 400 == 202 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_checkout.py#L125
test_checkout_conditions_librarian assert 400 == 202 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_checkout.py#L165
test_checkout_loader_start_end_dates assert 400 == 202 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests (circulation, 3.9, pypi, postgresql14, opensearch2): tests/api/circulation/test_loan_checkout.py#L249
test_self_checkout_search assert 400 == 404 + where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
Tests (circulation, 3.9, pypi, postgresql14, opensearch2)
Process completed with exit code 1.
Tests (ils, 3.9, pypi, postgresql14, opensearch2): tests/api/ils/test_resolvers.py#L204
test_jsonresolvers AssertionError: assert 4 == (1 + 1) + where 4 = len([{'pid_type': 'ilocid', 'record': {'pid': 'ilocid-4', 'name': 'Another unused library', '$schema': 'https://127.0.0.1:...tems/itemid-73/internal-location'}, 'internal_location_pid': 'ilocid-4', 'circulation_restriction': 'NO_RESTRICTION'}}])
Tests (ils, 3.9, pypi, postgresql14, opensearch2)
Process completed with exit code 1.