evalstone/evalscope/tests/cli/test_service.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
458 B
Python

import argparse
import pytest
from evalscope.cli.start_service import existing_directory
def test_existing_directory_returns_absolute_path(tmp_path):
assert existing_directory(str(tmp_path)) == str(tmp_path)
def test_existing_directory_rejects_missing_path(tmp_path):
missing_path = tmp_path / 'missing'
with pytest.raises(argparse.ArgumentTypeError, match='output directory does not exist'):
existing_directory(str(missing_path))