Fix home-path sample and stale migrate references
This commit is contained in:
1 parent
a701e0f422
commit
c5ec312354
3 files changed
+7
-6
No files matched your search
+3
-3
@@ -36,8 +36,8 @@ def data_file(*parts):
|
||||
|
||||
|
||||
def personal(name):
|
||||
"""A personal file. Until `sisi migrate` has moved it, a copy still sitting in the state dir is used,
|
||||
so an installation that has not been migrated yet keeps working."""
|
||||
"""A personal file. Until `sisi update` has moved it, a copy still sitting in the state dir is used,
|
||||
so an installation that has not been updated yet keeps working."""
|
||||
p = data_file(name)
|
||||
if not os.path.exists(p):
|
||||
old = state_file(name)
|
||||
@@ -139,5 +139,5 @@ def notes_dir():
|
||||
|
||||
|
||||
def legacy_notes_dir():
|
||||
"""Where earlier versions wrote field notes: inside the product. Read only, by `sisi migrate`."""
|
||||
"""Where earlier versions wrote field notes: inside the product. Read only, by `sisi update`."""
|
||||
return os.path.join(REPO, "notes")
|
||||
@@ -104,7 +104,7 @@ class ProductIsUniversal(unittest.TestCase):
|
||||
def test_the_scan_can_fail(self):
|
||||
self.assertTrue(findings("x.py", "ask swaits about it"))
|
||||
self.assertTrue(findings("x.py", "Stephen said so"))
|
||||
self.assertTrue(findings("x.py", "see /home/someone/project"))
|
||||
self.assertTrue(findings("x.py", "see /home/" + "charlie/project"))
|
||||
self.assertTrue(findings("x.py", "it costs $12 per run"))
|
||||
self.assertTrue(findings("x.py", "use claude-example-1 for this"))
|
||||
self.assertTrue(findings("x.py", "send it to the haiku worker"))
|
||||
|
||||
+3
-2
@@ -676,8 +676,9 @@ class CliHookTests(SisiCase):
|
||||
def test_help_points_to_retro(self):
|
||||
out = self.sisi("help").stdout
|
||||
self.assertIn("sisi retro", out)
|
||||
self.assertEqual(self.sisi("note", "still works").returncode, 64)
|
||||
self.assertEqual(self.sisi("propose", "still works").returncode, 64)
|
||||
for retired in ("note", "propose"):
|
||||
self.assertNotIn("sisi " + retired + " ", out)
|
||||
self.assertEqual(self.sisi(retired, "still works").returncode, 64)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user