Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
419 B
Python
14 lines
419 B
Python
"""Tests for step logging helper."""
|
|
from __future__ import annotations
|
|
|
|
import logging
|
|
|
|
from run_log import log_step
|
|
|
|
|
|
def test_log_step_formats_message(caplog):
|
|
caplog.set_level(logging.INFO, logger="misf.run")
|
|
log_step("Open facility", facility="Amaya", rows=2)
|
|
assert any("[STEP] Open facility" in r.message for r in caplog.records)
|
|
assert any("facility=Amaya" in r.message for r in caplog.records)
|