evalstone/evalscope/tests/agent/test_docker_image.py
sora 13274243a0 Bump vendored EvalScope and add K3-ready DPV4 configs.
Keep K3 suite selection and report-schema scoring in bash, merge K3/vision dataset_args into dpv4 yamls, and pin EvalScope at 735d920ee911 with local patches.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 07:30:48 +00:00

17 lines
601 B
Python

"""Tests for content-hashed Docker image helpers."""
from pathlib import Path
from evalscope.api.sandbox import hash_build_context
def test_hash_build_context_changes_for_source_and_cache_key(tmp_path: Path):
source = tmp_path / 'runtime.py'
source.write_text('VERSION = 1\n')
initial_hash = hash_build_context(str(tmp_path), cache_key_parts=['runtime=v1'])
source.write_text('VERSION = 2\n')
assert hash_build_context(str(tmp_path), cache_key_parts=['runtime=v1']) != initial_hash
assert hash_build_context(str(tmp_path), cache_key_parts=['runtime=v2']) != initial_hash