feat(e2e): add kind discriminator + direct/recorder scenario definitions
This commit is contained in:
@@ -58,6 +58,24 @@ class TestScenarios(unittest.TestCase):
|
||||
errs = S.validate_scenario(s)
|
||||
self.assertTrue(any("quant only on float" in e for e in errs), errs)
|
||||
|
||||
def test_all_scenarios_have_kind(self):
|
||||
for s in S.SCENARIOS:
|
||||
self.assertIn("kind", s, f"{s['id']} missing kind")
|
||||
self.assertIn(s["kind"], ("chain", "direct", "recorder", "debug", "tcplogger"))
|
||||
|
||||
def test_direct_and_recorder_scenarios_present(self):
|
||||
kinds = {s["kind"] for s in S.SCENARIOS}
|
||||
self.assertIn("direct", kinds)
|
||||
self.assertIn("recorder", kinds)
|
||||
direct_ids = {s["id"] for s in S.SCENARIOS if s["kind"] == "direct"}
|
||||
self.assertEqual(direct_ids, {"s52_direct_unicast", "s53_direct_multicast"})
|
||||
recorder_ids = {s["id"] for s in S.SCENARIOS if s["kind"] == "recorder"}
|
||||
self.assertEqual(recorder_ids, {"s54_recorder"})
|
||||
|
||||
def test_validate_scenario_accepts_all_kinds(self):
|
||||
for s in S.SCENARIOS:
|
||||
S.validate_scenario(s) # must not raise
|
||||
|
||||
|
||||
class TestGenData(unittest.TestCase):
|
||||
def test_ground_truth_shapes(self):
|
||||
|
||||
Reference in New Issue
Block a user