Skip to content
Open
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
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2019-2024 CERN.
# Copyright (C) 2019 Northwestern University.
# Copyright (C) 2022 Universität Hamburg.
# Copyright (C) 2022-2024 Graz University of Technology.
# Copyright (C) 2022-2025 Graz University of Technology.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -63,7 +63,7 @@ tests =
pytest-black-ng>=0.4.0
invenio-app>=2.0.0,<3.0.0
invenio-db[postgresql,mysql]>=2.0.0,<3.0.0
pytest-invenio>=3.0.0,<4.0.0
pytest-invenio>=3.1.0,<4.0.0
pytest-mock>=1.6.0
sphinx>=4.5.0
tripoli~=2.0.0
Expand Down
10 changes: 8 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2019-2025 CERN.
# Copyright (C) 2019-2022 Northwestern University.
# Copyright (C) 2021 TU Wien.
# Copyright (C) 2022-2023 Graz University of Technology.
# Copyright (C) 2022-2025 Graz University of Technology.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -157,7 +157,7 @@ def mock_datacite_client():


@pytest.fixture(scope="module")
def app_config(app_config, mock_datacite_client):
def app_config(app_config, mock_datacite_client, cache_uri):
"""Override pytest-invenio app_config fixture.

For test purposes we need to enforce the configuration variables set in
Expand Down Expand Up @@ -378,6 +378,12 @@ def app_config(app_config, mock_datacite_client):

app_config["USERS_RESOURCES_GROUPS_ENABLED"] = True

app_config["COMMUNITIES_IDENTITIES_CACHE_REDIS_URL"] = cache_uri
app_config["BROKER_URI"] = cache_uri
app_config["CACHE_REDIS_URL"] = cache_uri
app_config["CELERY_RESULT_BACKEND"] = cache_uri
app_config["IIIF_CACHE_REDIS_URL"] = cache_uri

return app_config


Expand Down
Loading