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

1 

2"""Agencies search query implementation for funding agency/office autocomplete.""" 

3 

4from __future__ import annotations 

5from typing import TYPE_CHECKING 

6from .agencies_search import AgenciesSearch 

7from ..logging_config import USASpendingLogger 

8 

9if TYPE_CHECKING: 

10 pass 

11 

12logger = USASpendingLogger.get_logger(__name__) 

13 

14class FundingAgenciesSearch(AgenciesSearch): 

15 """ Search for funding agencies and offices by name.""" 

16 

17 @property 

18 def _endpoint(self) -> str: 

19 """API endpoint for agency autocomplete.""" 

20 return "/autocomplete/funding_agency_office/"