Skip to content
Snippets Groups Projects
Verified Commit d5f9a457 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Expose deposit configuration only within the deposit tests

parent 777ea446
No related branches found
No related tags found
1 merge request!161Expose deposit configuration only within the deposit loader tests
# Copyright (C) 2019-2020 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
import copy
from typing import Any, Dict
import pytest
@pytest.fixture
def swh_loader_config(swh_loader_config) -> Dict[str, Any]:
config = copy.deepcopy(swh_loader_config)
config.update(
{
"deposit": {
"url": "https://deposit.softwareheritage.org/1/private",
"auth": {"username": "user", "password": "pass",},
},
}
)
return config
......@@ -26,10 +26,6 @@ def swh_loader_config(swh_storage_postgresql) -> Dict[str, Any]:
},
],
},
"deposit": {
"url": "https://deposit.softwareheritage.org/1/private",
"auth": {"username": "user", "password": "pass",},
},
}
......
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