Files
dl-organizer/tests/test_config_concurrency.py

12 lines
390 B
Python

"""Tests for concurrency-related config validation."""
from pathlib import Path
from vlm.config import Config, validate_config
def test_validate_rejects_non_positive_enrichment_concurrency():
config = Config(library_root=Path("/test"), enrichment_max_concurrency=0)
errors = validate_config(config)
assert any("enrichment_max_concurrency must be >= 1" in e for e in errors)