self-checkout: use dedicated endpoints #1104
Annotations
7 errors
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/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/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/api/circulation/test_loan_checkout.py#L125
test_checkout_conditions_librarian
assert 400 == 202
+ where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
|
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/api/circulation/test_loan_checkout.py#L249
test_self_checkout_search
assert 400 == 404
+ where 400 = <WrapperTestResponse streamed [400 BAD REQUEST]>.status_code
|
|
The logs for this run have expired and are no longer available.
Loading