Name the session, the archive folder and its env var loop-claude

This commit is contained in:
2026-09-25 00:12:45 +02:00
parent 3326c464c5
commit 6830500831
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -60,12 +60,12 @@ class Project(unittest.TestCase):
with unittest.mock.patch.dict(os.environ, {"HOME": "/h"}):
with unittest.mock.patch("os.getcwd", return_value="/h/code/a/b"):
self.assertEqual(loop.project(), "a/b")
self.assertEqual(loop.session_name(), "A a/b auto-mode")
self.assertEqual(loop.session_name(), "A a/b loop-claude")
with unittest.mock.patch("os.getcwd", return_value="/h/code"):
self.assertEqual(loop.project(), "h/code")
with unittest.mock.patch("os.getcwd", return_value="/srv/x"):
self.assertEqual(loop.project(), "srv/x")
self.assertEqual(loop.session_name(), "A srv/x auto-mode")
self.assertEqual(loop.session_name(), "A srv/x loop-claude")
class WorkerArgs(unittest.TestCase):