Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requests: implement a new community manage record request #496

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions site/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ invenio_config.module =
zenodo_rdm = zenodo_rdm.config
invenio_requests.types =
legacy_record_upgrade = zenodo_rdm.legacy.requests:LegacyRecordUpgrade
community_manage_record = zenodo_rdm.legacy.requests:CommunityManageRecord
invenio_access.actions =
media_files_management_action = zenodo_rdm.generators:media_files_management_action

Expand Down
5 changes: 3 additions & 2 deletions site/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from invenio_app import factory as app_factory
from invenio_communities import current_communities
from invenio_communities.communities.records.api import Community
from invenio_communities.generators import CommunityRoleNeed
from invenio_pidstore.errors import PIDDoesNotExistError
from invenio_rdm_records.cli import create_records_custom_field
from invenio_rdm_records.services.pids import providers
Expand Down Expand Up @@ -809,10 +810,10 @@ def community2(running_app, community_type_record, community_owner, minimal_comm

@pytest.fixture()
def community_with_uploader_owner(
running_app, community_type_record, uploader, minimal_community
running_app, community_type_record, uploader, minimal_community2
):
"""Create a community with an uploader owner."""
return _community_get_or_create(minimal_community, uploader.identity)
return _community_get_or_create(minimal_community2, uploader.identity)


@pytest.fixture(scope="module")
Expand Down
Loading
Loading