"""Unit tests for the search route parameter mapping.""" from fabledassistant.routes.search import _content_type_to_is_task def test_content_type_note(): assert _content_type_to_is_task("note") is False def test_content_type_task(): assert _content_type_to_is_task("task") is True def test_content_type_all(): assert _content_type_to_is_task("all") is None def test_content_type_unknown_defaults_to_all(): assert _content_type_to_is_task("unknown") is None