fix(burst): recognize native pressure units and separate isolation impact
This commit is contained in:
@@ -195,3 +195,11 @@ async def test_order_notification_precedes_durable_impact_and_keeps_run_availabl
|
||||
result.data["result"]["map_payload"]["features"].clear()
|
||||
assert len(repository.events[-1]["metadata"]["command"]["data"]["features"]) == 3
|
||||
assert repository.run["status"] == "running"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("unit", ["MTR", "mtr", " MTR "])
|
||||
def test_native_mtr_pressure_generates_all_three_grades(inputs, unit):
|
||||
result = service.estimate_burst_impact("own", START, simulation([1, 2.999, 3, 4.999, 5], unit))
|
||||
assert result["impact"]["status"] == "ready"
|
||||
assert [g["node_ids"] for g in result["impact"]["grades"]] == [["J0", "J1"], ["J2", "J3"], ["J4"]]
|
||||
assert len(result["map_payload"]["features"]) == 3
|
||||
|
||||
Reference in New Issue
Block a user