Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_core_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
class CoreSyncTests(unittest.TestCase):
def setUp(self):
self.tmp = tempfile.TemporaryDirectory(prefix='method-sync-');self.addCleanup(self.tmp.cleanup)
self.base = Path(self.tmp.name);self.source = self.base/'source';self.source.mkdir()
# macOS temp roots sit below the /var symlink; the lock check refuses symlinked ancestors.
self.base = Path(self.tmp.name).resolve();self.source = self.base/'source';self.source.mkdir()
self.target = self.base/'target';self.target.mkdir()
subprocess.run(['git','init','-q','-b','main',str(self.source)],check=True)
for key,value in [('user.name','Sync Test'),('user.email','sync@example.invalid')]: self.git('config',key,value)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_method_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def test_writing_archive_uses_committed_manifest_identity(self):
def test_both_opencode_loaders_coexist_and_uninstall_is_scoped(self):
# A fixed loader filename must not overwrite or block the second method.
with tempfile.TemporaryDirectory() as directory:
base=Path(directory);config=base/'config'
# Resolve first: the installer refuses symlinked parents such as macOS /var.
base=Path(directory).resolve();config=base/'config'
for name in ['engineering-method','writing-method']:
source=base/name
for folder in ['integrations/opencode','shared/platform','skills','.codex-plugin']:
Expand Down
Loading