From e072e326e718cef6fb9b2bc02eacf4df1704bc51 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 22 Dec 2025 16:02:33 +0000 Subject: [PATCH 1/2] Initial plan From d96d1e232924e2a9abbcbb591ffe440a05c09f23 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 22 Dec 2025 16:07:30 +0000 Subject: [PATCH 2/2] Add trailing newlines to Rule data in output tests for consistency Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com> --- tests/test_output.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_output.py b/tests/test_output.py index d90befd..e9dcabe 100644 --- a/tests/test_output.py +++ b/tests/test_output.py @@ -25,7 +25,7 @@ async def test_output_formats_facts_correctly(temp_db, capsys): # Add test data async with session() as sess: - sess.add(Facts(data="a\n----\nb")) + sess.add(Facts(data="a\n----\nb\n")) await sess.commit() # Run the main function with a timeout to avoid infinite loop @@ -49,7 +49,7 @@ async def test_output_formats_ideas_correctly(temp_db, capsys): # Add test data async with session() as sess: - sess.add(Ideas(data="x\n----\ny")) + sess.add(Ideas(data="x\n----\ny\n")) await sess.commit() # Run the main function with a timeout to avoid infinite loop @@ -73,10 +73,10 @@ async def test_output_multiple_entries(temp_db, capsys): # Add test data async with session() as sess: - sess.add(Facts(data="a\n----\nb")) - sess.add(Facts(data="c\n----\nd")) - sess.add(Ideas(data="x\n----\ny")) - sess.add(Ideas(data="p\n----\nq")) + sess.add(Facts(data="a\n----\nb\n")) + sess.add(Facts(data="c\n----\nd\n")) + sess.add(Ideas(data="x\n----\ny\n")) + sess.add(Ideas(data="p\n----\nq\n")) await sess.commit() # Run the main function with a timeout to avoid infinite loop