Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alzpeta committed Jul 31, 2024
1 parent 653507a commit 3c80fa0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion oarepo_doi/actions/doi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from flask import current_app
from oarepo_doi.api import create_doi

class CreateDoiAction(actions.AcceptAction):
class CreateDoiAction(actions.CreateAction):
log_event = True

def __init__(self, *args, **kwargs):
Expand Down
6 changes: 3 additions & 3 deletions oarepo_doi/types/doi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from invenio_requests.customizations import RequestType
from oarepo_runtime.i18n import lazy_gettext as _
from ..actions.doi import DoiAction
from .ref_types import ModelRefTypes
from ..actions.doi import CreateDoiAction, EditDoiAction
from oarepo_requests.types.ref_types import ModelRefTypes

class CreateDoiRequestType(RequestType):
type_id = "create_doi"
Expand All @@ -21,7 +21,7 @@ class EditDoiRequestType(RequestType):

available_actions = {
**RequestType.available_actions,
"accept": CreateDoiAction,
"accept": EditDoiAction,
}

receiver_can_be_none = True
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ long_description_content_type = text/markdown
python = >=3.10
install_requires =
invenio-requests
oarepo-requests

packages = find:

Expand All @@ -26,7 +27,7 @@ include = ['oarepo_requests.*']
[options.extras_require]
tests =
oarepo-model-builder-tests

oarepo-requests
[options.entry_points]
invenio_base.apps =
oarepo_doi = oarepo_doi.ext:OARepoDOI
Expand Down

0 comments on commit 3c80fa0

Please sign in to comment.