File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ def from_yaml(cls, yaml_str: str) -> Scenario:
120120 network_data = data .get ("network" , {})
121121 network = cls ._build_network (network_data )
122122
123- # 2) Build the (new) multi-rule failure policy
123+ # 2) Build the multi-rule failure policy
124124 fp_data = data .get ("failure_policy" , {})
125125 failure_policy = cls ._build_failure_policy (fp_data )
126126
Original file line number Diff line number Diff line change @@ -49,14 +49,13 @@ def test_scenario_1_build_graph() -> None:
4949 actual_edges == expected_nx_edges
5050 ), f"Expected { expected_nx_edges } directed edges, found { actual_edges } "
5151
52- # 7) Verify the traffic demands. In scenario_1.yaml, let's assume we have 4 demands.
53- # Adjust this to match your actual scenario_1.yaml.
52+ # 7) Verify the traffic demands.
5453 expected_demands = 4
5554 assert (
5655 len (scenario .traffic_demands ) == expected_demands
5756 ), f"Expected { expected_demands } traffic demands."
5857
59- # 8) Check the new multi-rule failure policy for "any single link".
58+ # 8) Check the multi-rule failure policy for "any single link".
6059 # This should have exactly 1 rule that picks exactly 1 link from all links.
6160 policy : FailurePolicy = scenario .failure_policy
6261 assert len (policy .rules ) == 1 , "Should only have 1 rule for 'anySingleLink'."
You can’t perform that action at this time.
0 commit comments