fix(sim): defensive .setdefault('paths', []) in test_context_sim_live
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user