Skip to content

Commit 7b6cb86

Browse files
committed
Add log with test scenario number
This makes it easier to identify which scenario is being currently tested then running the test with logs enabled and looking at the logs. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 4268c2b commit 7b6cb86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/timeseries/_battery_pool/test_battery_pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ async def run_scenarios(
278278
AssertionError: If received metric is not as expected.
279279
"""
280280
for idx, scenario in enumerate(scenarios):
281+
_logger.info("Testing scenario: %d", idx)
281282
# Update data stream
282283
old_data = streamer.get_current_component_data(scenario.component_id)
283284
new_data = replace(old_data, **scenario.new_metrics)

0 commit comments

Comments
 (0)