mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 20:35:22 +08:00
test(plugins): use in-tree sources without hash pins
Use the in-tree plugins directly for consumer contracts and avoid per-edit hash refreshes.
This commit is contained in:
@@ -137,6 +137,11 @@ class RepositoryTests(unittest.TestCase):
|
||||
lock = json.loads((CORE / 'tests/fixtures/legacy_plugin_identity_sources.json').read_text())
|
||||
self.assertEqual(lock['root'], 'plugins')
|
||||
self.assertEqual(lock['repository'], 'langbot-app/LangBot')
|
||||
if lock.get('revision') == 'in-tree':
|
||||
for key in ('files', 'local_agent_files'):
|
||||
for relative in lock[key]:
|
||||
self.assertTrue((ROOT / relative).is_file(), relative)
|
||||
return
|
||||
for key in ('files', 'local_agent_files'):
|
||||
for relative, expected in lock[key].items():
|
||||
self.assertEqual(hashlib.sha256((ROOT / relative).read_bytes()).hexdigest(), expected, relative)
|
||||
|
||||
Reference in New Issue
Block a user