MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_format_duration_hide_trailing_zeros

Function test_format_duration_hide_trailing_zeros

tests/test_format.py:49–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49def test_format_duration_hide_trailing_zeros() -> None:
50 assert format_duration(3_600_000, hide_trailing_zeros=True) == "1h"
51 assert format_duration(3_660_000, hide_trailing_zeros=True) == "1h 1m"
52 assert format_duration(86_400_000, hide_trailing_zeros=True) == "1d"
53 assert format_duration(90_000_000, hide_trailing_zeros=True) == "1d 1h"
54
55
56@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

format_durationFunction · 0.90

Tested by

no test coverage detected