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>
17 lines
458 B
Python
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))
|