19 lines
564 B
Python
19 lines
564 B
Python
"""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")
|