Skip to content
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

Make test folder for src structure and refactored verify_version tests #23

Merged
merged 1 commit into from
May 1, 2024

Conversation

willtai
Copy link
Contributor

@willtai willtai commented Apr 30, 2024

Summary

Before working on E2E tests, I wanted to refactor the test folder to make writing the E2E tests more easily

This PR:

  • Refactors test folder structure to follow src/ folder structure.
  • Isolate testing of _verify_version() of base retriever.
  • Test that inherited classes of Retriever call _verify_version()

@willtai willtai requested a review from a team April 30, 2024 15:26
@willtai willtai marked this pull request as ready for review April 30, 2024 15:27
fulltext_index_name = "my-fulltext-index"
query_text = "may thy knife chip and shatter"
top_k = 5
retrieval_query = """

Choose a reason for hiding this comment

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

(Not important) It could be out of scope: Should we test cases when input retrieval query or index names are wrong?

@willtai willtai merged commit e98a2d1 into main May 1, 2024
7 checks passed
@willtai willtai deleted the willtai/refactor-test-folder branch May 1, 2024 09:26
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