Skip to content

add Data API search tests using positional args #1041

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

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

stephenhillier
Copy link
Contributor

Related Issue(s):

#1038

Proposed Changes:

Adds a test to the Data API client calling the search method using positional args.

@stephenhillier stephenhillier changed the title add a Data API search test using positional args add Data API search tests using positional args May 30, 2024
@@ -223,6 +224,43 @@ async def test_search_filter(item_descriptions,
assert items_list == item_descriptions


@respx.mock
@pytest.mark.anyio
async def test_search_filter_positional_args(item_descriptions,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a short docstring for this test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, compared to the below tests it looks like this tests 'quick-search' and pagination rather than vanilla search? If so what do you think about renaming this test to reflect quick-search + pagination?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pagination removed from test and docstring added

Copy link
Contributor

@asonnenschein asonnenschein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I left a couple of nitpick comment, up to you to take the feedback or not @stephenhillier. Otherwise I don't see anything that should block this MR.

@stephenhillier stephenhillier merged commit 162cc04 into main Jun 3, 2024
10 checks passed
@stephenhillier stephenhillier deleted the steve/data-api-tests branch June 3, 2024 19:23
@pl-gideon pl-gideon mentioned this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants