diff --git a/PKG-INFO b/PKG-INFO index 1330a71a06cec8036a639e6358cdcdbe3bc962b5..ab3693a0f7f8462c543d61f60ae398f5aa6c9d47 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: swh.deposit -Version: 1.3.3 +Version: 1.3.4 Summary: Software Heritage Deposit Server Home-page: https://forge.softwareheritage.org/source/swh-deposit/ Author: Software Heritage developers diff --git a/swh.deposit.egg-info/PKG-INFO b/swh.deposit.egg-info/PKG-INFO index 1330a71a06cec8036a639e6358cdcdbe3bc962b5..ab3693a0f7f8462c543d61f60ae398f5aa6c9d47 100644 --- a/swh.deposit.egg-info/PKG-INFO +++ b/swh.deposit.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: swh.deposit -Version: 1.3.3 +Version: 1.3.4 Summary: Software Heritage Deposit Server Home-page: https://forge.softwareheritage.org/source/swh-deposit/ Author: Software Heritage developers diff --git a/swh/deposit/tests/api/conftest.py b/swh/deposit/tests/api/conftest.py index d9c676f3edc6795d330c55075426885830bb8800..6790892733afcb09141f44cbba1ff7bb9e435ff4 100644 --- a/swh/deposit/tests/api/conftest.py +++ b/swh/deposit/tests/api/conftest.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2021 The Software Heritage developers +# Copyright (C) 2019-2023 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information diff --git a/swh/deposit/tests/conftest.py b/swh/deposit/tests/conftest.py index 5f13a6c64a8098dc864682ebb3ca36e8b45ce71d..24ea99f209600595baae1cff63cbee53324a901e 100644 --- a/swh/deposit/tests/conftest.py +++ b/swh/deposit/tests/conftest.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2022 The Software Heritage developers +# Copyright (C) 2019-2023 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information @@ -116,6 +116,12 @@ def pytest_configure(): setup_django_for("testing") +@pytest.fixture +def datadir(request): + """Override default datadir to target main test datadir""" + return os.path.join(os.path.dirname(str(request.fspath)), "data") + + @pytest.fixture def requests_mock_datadir(datadir, requests_mock_datadir): """Override default behavior to deal with put/post methods"""