Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/tests/test_loader.py
Show First 20 Lines • Show All 2,343 Lines • ▼ Show 20 Lines | with pytest.raises(ValueError): | ||||
loader._check_revision_divergence(1, export_dir.hash, export_dir) | loader._check_revision_divergence(1, export_dir.hash, export_dir) | ||||
# check diverging paths have been detected and logged | # check diverging paths have been detected and logged | ||||
for debug_log in ( | for debug_log in ( | ||||
"directory with path b'trunk' has different hash in reconstructed repository filesystem", # noqa | "directory with path b'trunk' has different hash in reconstructed repository filesystem", # noqa | ||||
"directory with path b'trunk/data' has different hash in reconstructed repository filesystem", # noqa | "directory with path b'trunk/data' has different hash in reconstructed repository filesystem", # noqa | ||||
"content with path b'trunk/data/foo' has different hash in reconstructed repository filesystem", # noqa | "content with path b'trunk/data/foo' has different hash in reconstructed repository filesystem", # noqa | ||||
"directory with path b'trunk/data/baz' is missing in reconstructed repository filesystem", # noqa | "directory with path b'trunk/data/baz' is missing in reconstructed repository filesystem", # noqa | ||||
"below is diff between files:", | |||||
"@@ -1 +1 @@", | |||||
"-foo", | |||||
"+baz", | |||||
): | ): | ||||
assert debug_log in caplog.text | assert debug_log in caplog.text |