diff --git a/setup.cfg b/setup.cfg index 915e519e7..6be58003a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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. @@ -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 diff --git a/tests/conftest.py b/tests/conftest.py index c05299220..a455fb2c0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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. @@ -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 @@ -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