"""Unit tests for template utilities and configuration. Tests the templates module constants and the TEMPLATES_DIR path resolution. """ from pathlib import Path import pytest from src.server.utils.templates import TEMPLATES_DIR class TestTemplatesConfig: """Tests for templates module configuration.""" def test_templates_dir_is_path(self): """TEMPLATES_DIR is a Path object.""" assert isinstance(TEMPLATES_DIR, Path) def test_templates_dir_ends_with_templates(self): """TEMPLATES_DIR path ends with 'templates'.""" assert TEMPLATES_DIR.name == "templates" def test_templates_dir_parent_is_web(self): """TEMPLATES_DIR parent is 'web' directory.""" assert TEMPLATES_DIR.parent.name == "web" def test_templates_dir_grandparent_is_server(self): """TEMPLATES_DIR grandparent is 'server' directory.""" assert TEMPLATES_DIR.parent.parent.name == "server"