-
Notifications
You must be signed in to change notification settings - Fork 687
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
Fixed pagination issue in search.py and added corresponding test #846
Conversation
…e/paper-qa into fix-query-pagination
@pytest.mark.asyncio | ||
async def test_search_pagination(agent_test_settings: Settings) -> None: | ||
"""Test that pagination works correctly in SearchIndex.query().""" | ||
index = await get_directory_index(settings=agent_test_settings) |
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.
One other comment is, this index build in CI is a bit slow.
Can you do this:
- Make an async
pytest.fixture
withsession
scope that does this - Use it in
test_search_pagination
,test_deepcopy_env
Then this PR is good to go
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.
Per in-person convo, agent_test_settings
being not session scoped messes this up.
It's too much work to undo this for now, so we can handle this in a separate PR. YAGNI
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.
LGTM, nice work and thanks!
No description provided.