Enhanced Utils TestsΒΆ
OverviewΒΆ
tests/test_utils_improved.py
extends the utilities test coverage by mocking
scheduler detection and hostname lookups, ensuring the helpers behave in stripped
-down environments and when optional dependencies are missing.
HighlightsΒΆ
- Timestamp utilities β Verifies both default and custom-format timestamp generation.
- String normalisation β Confirms that varying separator and case inputs are translated into consistent, kebab-case identifiers.
- Key-value formatting β Ensures integers, booleans, and floats (with custom
precision) are rendered consistently by
utils.format_pair
.