Skip to content

Commit 9a1b5c4

Browse files
committed
fix by comments
1 parent c1cae43 commit 9a1b5c4

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

huntflow_api_client/entities/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from huntflow_api_client.entities.organization_settings import OrganizationSettings
1919
from huntflow_api_client.entities.production_calendars import ProductionCalendar
2020
from huntflow_api_client.entities.questionary import ApplicantsQuestionary
21+
from huntflow_api_client.entities.recommendation import Recommendation
2122
from huntflow_api_client.entities.regions import Region
2223
from huntflow_api_client.entities.rejection_reason import RejectionReason
2324
from huntflow_api_client.entities.resume import Resume
@@ -54,6 +55,7 @@
5455
"MultiVacancy",
5556
"OrganizationSettings",
5657
"ProductionCalendar",
58+
"Recommendation",
5759
"Region",
5860
"RejectionReason",
5961
"Resume",

huntflow_api_client/entities/recommendation.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ async def list(
2929
if next_page_cursor is not None:
3030
params = {"next_page_cursor": next_page_cursor}
3131
else:
32-
params = {
33-
"count": count,
34-
"processing_status": processing_status.value,
35-
}
32+
params = {"count": count}
33+
params["processing_status"] = processing_status.value
34+
3635
response = await self._api.request(
3736
"GET",
3837
f"/accounts/{account_id}/recommendations/{vacancy_id}",

tests/test_entities/test_recommendation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def test_list_recommendation(
5454
httpx_mock.add_response(
5555
url=(
5656
f"{VERSIONED_BASE_URL}/accounts/{ACCOUNT_ID}/recommendations/{VACANCY_ID}"
57-
f"?next_page_cursor={next_page_cursor}"
57+
f"?next_page_cursor={next_page_cursor}&processing_status=ALL"
5858
),
5959
json=RECOMMENDATION_LIST_RESPONSE,
6060
)

0 commit comments

Comments
 (0)