()
| 47 | |
| 48 | |
| 49 | def 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( |
nothing calls this directly
no test coverage detected