pytest_park.data.benchmarks
source module pytest_park.data.benchmarks
Classes
-
BenchmarkLoadError — Raised when a benchmark artifact cannot be parsed.
Functions
-
load_benchmark_payload — Load one in-memory pytest-benchmark payload into a run model.
-
build_benchmark_run — Build a run model from live pytest-benchmark entries.
-
load_benchmark_folder — Load pytest-benchmark JSON artifacts from a folder recursively.
source class BenchmarkLoadError()
Bases : ValueError
Raised when a benchmark artifact cannot be parsed.
source
load_benchmark_payload(payload: dict[str, Any], *, source_file: str = '
Load one in-memory pytest-benchmark payload into a run model.
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]