Skip to content

Commit 3d34cb8

Browse files
committed
Split assert condition to make failures more readable
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent fb5cc36 commit 3d34cb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/timeseries/_ev_charger_pool/test_ev_charger_pool_control_methods.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ def _assert_report( # pylint: disable=too-many-arguments
177177
Callable[[_power_distributing.Result], bool] | None
178178
) = None,
179179
) -> None:
180-
assert report is not None and report.target_power == (
180+
assert report is not None
181+
assert report.target_power == (
181182
Power.from_watts(power) if power is not None else None
182183
)
183184
assert report.bounds is not None

0 commit comments

Comments
 (0)