Expand offline review checks and fix relative output finalization

This commit is contained in:
StasonJatham committed 2026-10-05 16:18:18 +02:00
1 parent 83f53adb29
commit b4fd5fb6ff
12 files changed
+571 -6

No files matched your search

+12
View File
@@ -95,6 +95,18 @@ class EasyCliTests(unittest.TestCase):
self.invoke(["scan", str(folder)])
self.assertEqual(len(self.events()), 1)
def test_relative_output_preserves_preparation_manifest(self) -> None:
folder = self.case / "logs"
folder.mkdir()
(folder / "httpaccess.log").write_text(LOG, encoding="utf-8")
self.invoke(["scan", "logs", "--output", "results/new"])
output = self.case / "results/new"
manifest = json.loads((output / "details/preparation_manifest.json").read_text())
self.assertTrue((output / "SUMMARY.txt").is_file())
for root in manifest["roots"]:
self.assertTrue((output / root["path"]).is_dir())
self.assertEqual(len(self.events()), 1)
def test_missing_common_drive_uses_current_output_parent(self) -> None:
folder = self.case / "logs"
folder.mkdir()