diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2026-10-03 22:45:27 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2026-10-03 22:45:27 -0300 |
| commit | f546a8a1578bef9fbc144580b84f51e3e90480b1 (patch) | |
| tree | 5ef61bcbc9729878ced017429a7d21a644c82060 /tests/test_terminal.py | |
| parent | 5fc59b6936b2d4a05f5f5192458145d0112431d3 (diff) | |
| download | claude-logbook-f546a8a1578bef9fbc144580b84f51e3e90480b1.tar.gz claude-logbook-f546a8a1578bef9fbc144580b84f51e3e90480b1.zip | |
Show branches with their inherited history and mark directory changes
Diffstat (limited to 'tests/test_terminal.py')
| -rw-r--r-- | tests/test_terminal.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_terminal.py b/tests/test_terminal.py index e7e6d69..7752e37 100644 --- a/tests/test_terminal.py +++ b/tests/test_terminal.py @@ -135,6 +135,18 @@ class TestOutput(unittest.TestCase): self.assertIn("context compacted here", out) self.assertNotIn("SUMMARY TEXT", out) + def test_branch_hides_what_it_inherited(self): + buf = io.StringIO() + c = [{"r": "u", "x": "OLD QUESTION"}, {"r": "a", "x": "OLD ANSWER"}, + {"r": "d", "x": "/home/u/proj/sub"}, {"r": "u", "x": "new one"}] + T.print_chat(self.session_item(c=c, h=2, o="12345678-aa", ot="The original"), + T.Style(False), buf) + out = buf.getvalue() + self.assertIn("2 messages inherited from The original", out) + self.assertNotIn("OLD", out) + self.assertIn("→ /home/u/proj/sub", out) + self.assertIn("new one", out) + def test_empty_session_says_so(self): buf = io.StringIO() T.print_chat(self.session_item(c=[], t=None), T.Style(False), buf) |