DLO-16: Reduce cli.py from 1073 to 83 lines by registering Click commands from commands/*.py modules DLO-17: Migrate Config to Pydantic BaseModel for validation DLO-18: Split planner.py (826 lines) into orchestration, path rendering, and duplicate handling modules DLO-20: Unify type system — convert 14 dataclasses to Pydantic BaseModel, keep TypedDicts as JSON schema hints Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
14 lines
381 B
Python
14 lines
381 B
Python
"""Tests for concurrency-related config validation."""
|
|
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
from pydantic import ValidationError
|
|
|
|
from vlm.config import Config
|
|
|
|
|
|
def test_validate_rejects_non_positive_enrichment_concurrency():
|
|
with pytest.raises(ValidationError, match="enrichment_max_concurrency"):
|
|
Config(library_root=Path("/test"), enrichment_max_concurrency=0)
|