2026-02-13 13:36:39 +08:00
|
|
|
"""Tests for concurrency-related config validation."""
|
|
|
|
|
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
2026-09-27 10:47:04 +08:00
|
|
|
import pytest
|
|
|
|
|
from pydantic import ValidationError
|
|
|
|
|
|
|
|
|
|
from vlm.config import Config
|
2026-02-13 13:36:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_validate_rejects_non_positive_enrichment_concurrency():
|
2026-09-27 10:47:04 +08:00
|
|
|
with pytest.raises(ValidationError, match="enrichment_max_concurrency"):
|
|
|
|
|
Config(library_root=Path("/test"), enrichment_max_concurrency=0)
|