Private
Public Access
0
0

fix(sim): defensive .setdefault('paths', []) in test_context_sim_live

This commit is contained in:
2026-06-10 11:33:15 -04:00
parent c729f8adaf
commit 4660b8c874
4 changed files with 26 additions and 79 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class ContextSimulation(BaseSimulation):
import glob
all_py = [os.path.basename(f) for f in glob.glob("*.py")]
for f in all_py:
if f not in proj['project']['files']['paths']:
if f not in proj['project']['files'].setdefault('paths', []):
proj['project']['files']['paths'].append(f)
# Update project via hook
self.client.post_project(proj['project'])