self-checkout: use dedicated endpoints #1105
Annotations
3 errors
Run tests:
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
|
Run tests:
tests/api/circulation/test_loan_checkout.py#L249
test_self_checkout_search
assert 400 == 404
+ where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
|
Run tests
Process completed with exit code 1.
|
Loading