hbutils.testing.simulate
Simulation utilities for specialized Python runtime behaviors.
This module provides helpers for simulating and testing special Python
behaviors in controlled environments. It primarily re-exports the public API
from hbutils.testing.simulate.entry, which contains utilities focused
on simulating CLI entry point execution and related runtime characteristics.
The module contains the following main components (re-exported):
EntryRunResult- Result container for simulated CLI entry execution.
Note
This module is intended for testing usage. It re-exports utilities from
hbutils.testing.simulate.entry to provide a convenient import path.
Example:
>>> from hbutils.testing.simulate import EntryRunResult
>>> result = EntryRunResult(0, "ok", "", None)
>>> result.exitcode
0