Skip to content

self-checkout: use dedicated endpoints #1105

self-checkout: use dedicated endpoints

self-checkout: use dedicated endpoints #1105

Triggered via pull request October 28, 2024 20:54
Status Failure
Total duration 14m 55s
Artifacts

tests.yml

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

Annotations

5 errors
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 20:55:06.646781+00:00 +++ /home/runner/work/invenio-app-ils/invenio-app-ils/tests/api/circulation/test_loan_checkout.py 2024-10-28 20:57:54.556644+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#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.