Capture the command output in the parent-directory export test

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-17 22:38:37 +08:00
co-authored by Claude Opus 5
parent 4ae6fa7b2e
commit dfdfccc460
+2
View File
@@ -189,6 +189,8 @@ class TestExportLlmInput(unittest.TestCase):
created when missing.""" created when missing."""
self.__seed([("Hello", "Adele", "hello lyrics\n")]) self.__seed([("Hello", "Adele", "hello lyrics\n")])
nested: Path = self.__dir / "nested" / "dir" / "out.jsonl" nested: Path = self.__dir / "nested" / "dir" / "out.jsonl"
stderr: io.StringIO = io.StringIO()
with redirect_stderr(stderr):
status: int = export_llm_input.main([str(nested)]) status: int = export_llm_input.main([str(nested)])
self.assertEqual(status, 0) self.assertEqual(status, 0)
self.assertTrue(nested.exists()) self.assertTrue(nested.exists())