Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/tests/test_loader.py
Show First 20 Lines • Show All 2,169 Lines • ▼ Show 20 Lines | assert_last_visit_matches( | ||||
repo_url, | repo_url, | ||||
status="full", | status="full", | ||||
type="svn", | type="svn", | ||||
) | ) | ||||
check_snapshot(loader.snapshot, loader.storage) | check_snapshot(loader.snapshot, loader.storage) | ||||
def test_loader_with_spaces_in_svn_url(swh_storage, repo_url, tmp_path): | @pytest.mark.parametrize( | ||||
filename = "file with spaces.txt" | "filename", ["file with spaces.txt", "file#with#hash#signs.txt"] | ||||
) | |||||
def test_loader_with_special_chars_in_svn_url(repo_url, tmp_path, filename): | |||||
content = b"foo" | content = b"foo" | ||||
add_commit( | add_commit( | ||||
repo_url, | repo_url, | ||||
"Add file with spaces in its name", | "Add file with spaces in its name", | ||||
[ | [ | ||||
CommitChange( | CommitChange( | ||||
change_type=CommitChangeType.AddOrUpdate, | change_type=CommitChangeType.AddOrUpdate, | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |