Skip to content

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.

Running the Testsโš“๏ธŽ

python -m pytest tests/test_utils_improved.py