Coverage for src/usaspending/queries/awarding_agencies_search.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-09-03 17:15 -0700

1 

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

3 

4from __future__ import annotations 

5from .agencies_search import AgenciesSearch 

6from ..logging_config import USASpendingLogger 

7 

8logger = USASpendingLogger.get_logger(__name__) 

9 

10class AwardingAgenciesSearch(AgenciesSearch): 

11 """ Search for awarding agencies and offices by name.""" 

12 

13 @property 

14 def _endpoint(self) -> str: 

15 """API endpoint for agency autocomplete.""" 

16 return "/autocomplete/awarding_agency_office/"