requests: manage sending notifications #1262
Annotations
2 errors
Run tests:
invenio_requests/services/requests/service.py#L1
Black format check
--- /home/runner/work/invenio-requests/invenio-requests/invenio_requests/services/requests/service.py 2024-11-14 13:45:29.478565+00:00
+++ /home/runner/work/invenio-requests/invenio-requests/invenio_requests/services/requests/service.py 2024-11-14 13:49:20.315555+00:00
@@ -222,11 +222,13 @@
raise CannotExecuteActionError(action)
action_obj.execute(identity, uow)
@unit_of_work()
- def execute_action(self, identity, id_, action, data=None, uow=None, expand=False, **kwargs):
+ def execute_action(
+ self, identity, id_, action, data=None, uow=None, expand=False, **kwargs
+ ):
"""Execute the given action for the request, if possible.
For instance, it would be not possible to execute the specified
action on the request, if the latter has the wrong status.
"""
|
Run tests
Process completed with exit code 1.
|
Loading