Skip to content
Snippets Groups Projects
Commit 4f397054 authored by Jenkins for Software Heritage's avatar Jenkins for Software Heritage
Browse files

New upstream version 1.3.4

parents 48014807 aa38cc72
No related branches found
No related tags found
No related merge requests found
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: swh.deposit Name: swh.deposit
Version: 1.3.3 Version: 1.3.4
Summary: Software Heritage Deposit Server Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/ Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers Author: Software Heritage developers
......
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: swh.deposit Name: swh.deposit
Version: 1.3.3 Version: 1.3.4
Summary: Software Heritage Deposit Server Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/ Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers Author: Software Heritage developers
......
# 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 # See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version # License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information # See top-level LICENSE file for more information
......
# 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 # See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version # License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information # See top-level LICENSE file for more information
...@@ -116,6 +116,12 @@ def pytest_configure(): ...@@ -116,6 +116,12 @@ def pytest_configure():
setup_django_for("testing") 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 @pytest.fixture
def requests_mock_datadir(datadir, requests_mock_datadir): def requests_mock_datadir(datadir, requests_mock_datadir):
"""Override default behavior to deal with put/post methods""" """Override default behavior to deal with put/post methods"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment