-
Notifications
You must be signed in to change notification settings - Fork 0
Add include_history parameter to Client search method #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
6da1f07
9fc630f
65b7a0b
06df3ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -66,6 +66,7 @@ async def search( | |||||
| birthday: dt.date | None = None, | ||||||
| search_type: SearchType | None = None, | ||||||
| search_list: tuple[SearchList, ...] | None = None, | ||||||
| include_history: bool | None = None, | ||||||
| ) -> list[Person]: | ||||||
| """Perform a search request and return the results. | ||||||
|
|
||||||
|
|
@@ -105,6 +106,7 @@ async def search( | |||||
| 'birthday': birthday.strftime('%d/%m/%Y') if birthday else None, | ||||||
| 'type': search_type.value if search_type is not None else None, | ||||||
| 'list': ','.join(search_list) if search_list else None, | ||||||
| 'include_history': include_history, | ||||||
|
||||||
| 'include_history': include_history, | |
| 'include_history': str(include_history).lower() if include_history is not None else None, |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __version__ = '1.0.3' | ||
| __version__ = '1.0.4' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ types-requests==2.* | |
| pytest-asyncio==0.* | ||
| pytest-mock==3.* | ||
| respx==0.* | ||
| vcrpy==7.0.* | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The codebase has comprehensive test coverage for the search method with various parameters (see tests/test_client.py lines 24-61), but no tests have been added for the new
include_historyparameter. Consider adding test cases that verify the behavior wheninclude_historyis set to True, False, and None to ensure the parameter is correctly passed to the API and behaves as expected.