pytest_park.data
source package pytest_park.data
Classes
-
BenchmarkLoadError — Raised when a benchmark artifact cannot be parsed.
-
ProfilerLoadError — Raised when profiler artifacts cannot be loaded.
Functions
-
build_benchmark_run — Build a run model from live pytest-benchmark entries.
-
load_benchmark_folder — Load pytest-benchmark JSON artifacts from a folder recursively.
-
load_benchmark_payload — Load one in-memory pytest-benchmark payload into a run model.
-
load_profiler_folder — Load profiler JSON files and return data grouped by run_id and case key.
source class BenchmarkLoadError()
Bases : ValueError
Raised when a benchmark artifact cannot be parsed.
source class ProfilerLoadError()
Bases : ValueError
Raised when profiler artifacts cannot be loaded.
source
build_benchmark_run(benchmarks: list[dict[str, Any]], *, run_id: str, source_file: str = '
Build a run model from live pytest-benchmark entries.
source load_benchmark_folder(folder: str | Path, original_postfix: list[str] | str | None = None, reference_postfix: list[str] | str | None = None) → list[BenchmarkRun]
source
load_benchmark_payload(payload: dict[str, Any], *, source_file: str = '
Load one in-memory pytest-benchmark payload into a run model.
source load_profiler_folder(folder: str | Path) → dict[str, dict[str, dict[str, Any]]]