"""Test fixtures and utilities.""" from pathlib import Path from tempfile import TemporaryDirectory import pytest @pytest.fixture def temp_test_dir(): """Provide a temporary directory for tests.""" with TemporaryDirectory() as tmpdir: yield Path(tmpdir) @pytest.fixture def sample_test_file(temp_test_dir): """Provide a sample test file.""" test_file = temp_test_dir / "test_file.txt" test_file.write_text("Test content") yield test_file