Skip to content

Commit

Permalink
requests: cover community manage record request with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored and zzacharo committed Sep 14, 2023
1 parent c7e4e5b commit e8807ad
Show file tree
Hide file tree
Showing 3 changed files with 418 additions and 6 deletions.
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

0 comments on commit e8807ad

Please sign in to comment.