Improve coverage
This commit is contained in:
18
tests/test_config.py
Normal file
18
tests/test_config.py
Normal 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")
|
||||
Reference in New Issue
Block a user