Improve coverage

This commit is contained in:
2026-02-20 06:02:57 +00:00
parent 5ceaadb20c
commit 734cade8d9
28 changed files with 2719 additions and 387 deletions

18
tests/test_config.py Normal file
View File

@@ -0,0 +1,18 @@
"""Tests for configuration settings."""
from pathlib import Path
from capa_de_integracion.config import Settings
def test_settings_base_path():
"""Test settings base_path property."""
settings = Settings.model_validate({})
base_path = settings.base_path
assert isinstance(base_path, Path)
# Check that the path ends with /resources relative to the package
assert base_path.name == "resources"
# Verify the path contains the project directory
assert "resources" in str(base_path)
assert str(base_path).endswith("resources")