SevZero Bot commited on
Commit
1fca0fa
·
1 Parent(s): b05ccd5

Fix: extract service_id in _process_action; scope pytest to tests/ only

Browse files
Files changed (2) hide show
  1. pyproject.toml +4 -0
  2. server/simulator.py +2 -0
pyproject.toml CHANGED
@@ -34,3 +34,7 @@ dev = [
34
  "pytest>=7.0.0",
35
  "httpx>=0.24.0",
36
  ]
 
 
 
 
 
34
  "pytest>=7.0.0",
35
  "httpx>=0.24.0",
36
  ]
37
+
38
+ [tool.pytest.ini_options]
39
+ testpaths = ["tests"]
40
+ norecursedirs = ["_recovery", ".git", "outputs", "training/data", "playbook", "DocsR2"]
server/simulator.py CHANGED
@@ -332,6 +332,8 @@ class Simulator:
332
  record["note"] = "Approval request recorded (manager will respond next tick)"
333
  return record
334
 
 
 
335
  if action_type == "inspect_logs":
336
  return self._do_inspect_logs(service_id, record)
337
  elif action_type == "inspect_metrics":
 
332
  record["note"] = "Approval request recorded (manager will respond next tick)"
333
  return record
334
 
335
+ service_id = params.get("service_id")
336
+
337
  if action_type == "inspect_logs":
338
  return self._do_inspect_logs(service_id, record)
339
  elif action_type == "inspect_metrics":