Files
hermes-agent/tests/tools/test_search_files_schema_platform.py
Teknium d4403afd9f fix(file-tools): search_files mentions macOS protected-folder pruning only on macOS
The pruning only runs on a darwin host; Linux and Windows schemas carried the sentence for
nothing. Gate it on hermes_platform.host.facts.os_family().
2026-10-24 18:44:31 -07:00

17 lines
531 B
Python

"""search_files advertises macOS protected-folder pruning only on the host that prunes."""
import pytest
from tools.file_tools import SEARCH_FILES_SCHEMA
@pytest.mark.platforms("macos")
def test_macos_schema_explains_protected_folder_pruning():
assert "TCC-protected folders" in SEARCH_FILES_SCHEMA["description"]
@pytest.mark.platforms("not macos")
def test_other_hosts_schema_omits_macos_pruning():
description = SEARCH_FILES_SCHEMA["description"]
assert "macOS" not in description and "TCC" not in description