Skip to content
Snippets Groups Projects
Commit 6aaf43cc authored by Antoine Lambert's avatar Antoine Lambert
Browse files

test_loader: Fix black formatting

parent d7609558
No related branches found
No related tags found
No related merge requests found
...@@ -1379,12 +1379,15 @@ def test_loader_cvs_with_missing_cvs_config_file(swh_storage, datadir, tmp_path) ...@@ -1379,12 +1379,15 @@ def test_loader_cvs_with_missing_cvs_config_file(swh_storage, datadir, tmp_path)
def test_loader_cvs_rsync_not_found(swh_storage, mocker): def test_loader_cvs_rsync_not_found(swh_storage, mocker):
origin_url = "rsync://example.org/cvsroot/module" origin_url = "rsync://example.org/cvsroot/module"
loader = CvsLoader(swh_storage, origin_url) loader = CvsLoader(swh_storage, origin_url)
mocker.patch.object( mocker.patch.object(loader, "execute_rsync").side_effect = (
loader, "execute_rsync" subprocess.CalledProcessError(
).side_effect = subprocess.CalledProcessError( returncode=23,
returncode=23, cmd=["rsync", origin_url],
cmd=["rsync", origin_url], stderr=(
stderr='rsync: change_dir "/module" (in cvsroot) failed: No such file or directory (2)', 'rsync: change_dir "/module" (in cvsroot) failed: '
"No such file or directory (2)"
),
)
) )
assert loader.load() == {"status": "uneventful"} assert loader.load() == {"status": "uneventful"}
visit_status = ( visit_status = (
......
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