Coverage for src/usaspending/queries/funding_agencies_search.py: 100%
9 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-03 17:15 -0700
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-03 17:15 -0700
2"""Agencies search query implementation for funding agency/office autocomplete."""
4from __future__ import annotations
5from typing import TYPE_CHECKING
6from .agencies_search import AgenciesSearch
7from ..logging_config import USASpendingLogger
9if TYPE_CHECKING:
10 pass
12logger = USASpendingLogger.get_logger(__name__)
14class FundingAgenciesSearch(AgenciesSearch):
15 """ Search for funding agencies and offices by name."""
17 @property
18 def _endpoint(self) -> str:
19 """API endpoint for agency autocomplete."""
20 return "/autocomplete/funding_agency_office/"