holy fuking shit
This commit is contained in:
@@ -62,7 +62,7 @@ class BayesLoopAcceptanceTests(unittest.TestCase):
|
||||
|
||||
def test_sixteen_sources_stop_by_count_bound(self):
|
||||
sources = random_omni_scene(seed=6, count=16, config=CONFIG)
|
||||
summary, report, simulator = _run_scene(sources)
|
||||
summary, report, _ = _run_scene(sources)
|
||||
truth = sorted(s.channel for s in sources)
|
||||
self.assertTrue(summary["completed"])
|
||||
self.assertEqual(summary["stop_reason"], "sixteen_cleared")
|
||||
@@ -72,7 +72,7 @@ class BayesLoopAcceptanceTests(unittest.TestCase):
|
||||
|
||||
def test_empty_arena_all_absent(self):
|
||||
"""0 源:每个频道都必须由 PF 排除盘证明缺席后正常退出。"""
|
||||
summary, report, simulator = _run_scene([], config=NO_PERSIST)
|
||||
summary, report, _ = _run_scene([], config=NO_PERSIST)
|
||||
self.assertTrue(summary["completed"])
|
||||
self.assertEqual(summary["stop_reason"], "all_resolved")
|
||||
self.assertEqual(sorted(summary["absent_channels"]),
|
||||
@@ -89,7 +89,7 @@ class BayesLoopAcceptanceTests(unittest.TestCase):
|
||||
sources = [Source(c + 1, 1800.0 * math.cos(math.pi / 6 + 2 * math.pi * c / 4),
|
||||
1800.0 * math.sin(math.pi / 6 + 2 * math.pi * c / 4),
|
||||
1000.0) for c in range(4)]
|
||||
summary, report, simulator = _run_scene(sources, config=NO_PERSIST)
|
||||
summary, report, _ = _run_scene(sources, config=NO_PERSIST)
|
||||
truth = sorted(s.channel for s in sources)
|
||||
self.assertTrue(summary["completed"])
|
||||
self.assertEqual(sorted(summary["cleared_channels"]), truth)
|
||||
@@ -112,7 +112,7 @@ class BayesLoopAcceptanceTests(unittest.TestCase):
|
||||
def test_transport_fault_retries_keep_session_clean(self):
|
||||
sources = random_omni_scene(seed=5, count=10, config=CONFIG)
|
||||
script = [("drop_before", 1)] # 首个请求丢弃一次:幂等重试路径
|
||||
summary, report, simulator = _run_scene(sources, fault_script=script)
|
||||
summary, report, _ = _run_scene(sources, fault_script=script)
|
||||
truth = sorted(s.channel for s in sources)
|
||||
self.assertTrue(summary["completed"])
|
||||
self.assertEqual(sorted(summary["cleared_channels"]), truth)
|
||||
@@ -141,9 +141,9 @@ class BayesLoopAcceptanceTests(unittest.TestCase):
|
||||
|
||||
def test_cli_strategy_registry(self):
|
||||
"""CLI --strategy 注册表:bayes/seven 用七站,grid 用 49 点网格。"""
|
||||
import mcm26b.cli as cli
|
||||
from mcm26b import cli
|
||||
from mcm26b.coverage import coverage_points
|
||||
from mcm26b.planner.seven import SevenBatch, seven_points
|
||||
from mcm26b.planner.seven import seven_points
|
||||
self.assertIs(cli.Q3_STRATEGIES["bayes"], BayesLoop)
|
||||
for name, loop_cls in cli.Q3_STRATEGIES.items():
|
||||
simulator = LocalSimulator([], robot_id="T001", config=CONFIG)
|
||||
|
||||
Reference in New Issue
Block a user