Skip to content

Commit ff69aef

Browse files
committed
Use only one # for comments
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent d7dc312 commit ff69aef

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

tests/actor/power_distributing/test_power_distributing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ async def test_power_distributor_exclusion_bounds(
191191
channel_registry=channel_registry,
192192
battery_status_sender=battery_status_channel.new_sender(),
193193
):
194-
## zero power requests should pass through despite the exclusion bounds.
194+
# zero power requests should pass through despite the exclusion bounds.
195195
request = Request(
196196
namespace=self._namespace,
197197
power=Power.zero(),
@@ -216,8 +216,8 @@ async def test_power_distributor_exclusion_bounds(
216216
assert result.excess_power.isclose(Power.zero(), abs_tol=1e-9)
217217
assert result.request == request
218218

219-
## non-zero power requests that fall within the exclusion bounds should be
220-
## rejected.
219+
# non-zero power requests that fall within the exclusion bounds should be
220+
# rejected.
221221
request = Request(
222222
namespace=self._namespace,
223223
power=Power.from_watts(300.0),

tests/microgrid/test_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ async def test_meter_data(self) -> None:
411411
)
412412

413413
with pytest.raises(ValueError):
414-
## should raise a ValueError for missing component_id
414+
# should raise a ValueError for missing component_id
415415
await microgrid.meter_data(20)
416416

417417
with pytest.raises(ValueError):
418-
## should raise a ValueError for wrong component category
418+
# should raise a ValueError for wrong component category
419419
await microgrid.meter_data(38)
420420
peekable = (await microgrid.meter_data(83)).into_peekable()
421421
await asyncio.sleep(0.2)
@@ -444,11 +444,11 @@ async def test_battery_data(self) -> None:
444444
)
445445

446446
with pytest.raises(ValueError):
447-
## should raise a ValueError for missing component_id
447+
# should raise a ValueError for missing component_id
448448
await microgrid.meter_data(20)
449449

450450
with pytest.raises(ValueError):
451-
## should raise a ValueError for wrong component category
451+
# should raise a ValueError for wrong component category
452452
await microgrid.meter_data(38)
453453
peekable = (await microgrid.battery_data(83)).into_peekable()
454454
await asyncio.sleep(0.2)
@@ -477,11 +477,11 @@ async def test_inverter_data(self) -> None:
477477
)
478478

479479
with pytest.raises(ValueError):
480-
## should raise a ValueError for missing component_id
480+
# should raise a ValueError for missing component_id
481481
await microgrid.meter_data(20)
482482

483483
with pytest.raises(ValueError):
484-
## should raise a ValueError for wrong component category
484+
# should raise a ValueError for wrong component category
485485
await microgrid.meter_data(38)
486486
peekable = (await microgrid.inverter_data(83)).into_peekable()
487487
await asyncio.sleep(0.2)
@@ -510,11 +510,11 @@ async def test_ev_charger_data(self) -> None:
510510
)
511511

512512
with pytest.raises(ValueError):
513-
## should raise a ValueError for missing component_id
513+
# should raise a ValueError for missing component_id
514514
await microgrid.meter_data(20)
515515

516516
with pytest.raises(ValueError):
517-
## should raise a ValueError for wrong component category
517+
# should raise a ValueError for wrong component category
518518
await microgrid.meter_data(38)
519519
peekable = (await microgrid.ev_charger_data(83)).into_peekable()
520520
await asyncio.sleep(0.2)

tests/timeseries/test_ev_charger_pool.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,26 @@ async def check_states(
4646
for comp_id, exp_state in expected.items():
4747
assert state_tracker.get(comp_id) == exp_state
4848

49-
## check that all chargers are in idle state.
49+
# check that all chargers are in idle state.
5050
expected_states = {evc_id: EVChargerState.IDLE for evc_id in mockgrid.evc_ids}
5151
assert len(expected_states) == 5
5252
await check_states(expected_states)
5353

54-
## check that EV_PLUGGED state gets set
54+
# check that EV_PLUGGED state gets set
5555
evc_2_id = mockgrid.evc_ids[2]
5656
mockgrid.evc_cable_states[evc_2_id] = EVChargerCableState.EV_PLUGGED
5757
mockgrid.evc_component_states[evc_2_id] = EVChargerComponentState.READY
5858
expected_states[evc_2_id] = EVChargerState.EV_PLUGGED
5959
await check_states(expected_states)
6060

61-
## check that EV_LOCKED state gets set
61+
# check that EV_LOCKED state gets set
6262
evc_3_id = mockgrid.evc_ids[3]
6363
mockgrid.evc_cable_states[evc_3_id] = EVChargerCableState.EV_LOCKED
6464
mockgrid.evc_component_states[evc_3_id] = EVChargerComponentState.READY
6565
expected_states[evc_3_id] = EVChargerState.EV_LOCKED
6666
await check_states(expected_states)
6767

68-
## check that ERROR state gets set
68+
# check that ERROR state gets set
6969
evc_1_id = mockgrid.evc_ids[1]
7070
mockgrid.evc_cable_states[evc_1_id] = EVChargerCableState.EV_LOCKED
7171
mockgrid.evc_component_states[evc_1_id] = EVChargerComponentState.ERROR

0 commit comments

Comments
 (0)