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
-
load_benchmark_folder — Load pytest-benchmark JSON artifacts from a folder recursively.
-
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 load_benchmark_folder(folder: str | Path, original_postfix: str | None = None, reference_postfix: str | None = None) → list[BenchmarkRun]
source load_profiler_folder(folder: str | Path) → dict[str, dict[str, dict[str, Any]]]