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

Added new tests to improve test coverage for Neo4jVector #17

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

willtai
Copy link
Collaborator

@willtai willtai commented Nov 29, 2024

Description

This PR improves test coverage for neo4j_vector.py from 84% to 97%.

For the unit tests, a fixture neo4j_vector_factory was added to avoid repeated code when setting up unit tests.

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Project configuration change

Complexity

Medium

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Manual tests

Checklist

  • Unit tests updated
  • Integration tests updated
  • CHANGELOG.md updated

@@ -345,8 +345,6 @@ def _handle_field_filter(
query_snippet = f"toLower(n.`{field}`) CONTAINS $param_{param_number}"
query_param = {f"param_{param_number}": filter_value.rstrip("%")}
return (query_snippet, query_param)
else:
raise NotImplementedError()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This block is redundant

@willtai willtai force-pushed the improve-test-coverage-for-neo4jvector branch from 766d771 to f8a1aec Compare November 29, 2024 17:56
@willtai willtai force-pushed the improve-test-coverage-for-neo4jvector branch from f8a1aec to a4587fd Compare December 4, 2024 10:48
@willtai willtai force-pushed the improve-test-coverage-for-neo4jvector branch from a4587fd to 6f63396 Compare December 4, 2024 10:48
@willtai willtai marked this pull request as ready for review December 4, 2024 10:49
Copy link
Collaborator

@alexthomas93 alexthomas93 left a comment

Choose a reason for hiding this comment

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

LGTM.

@willtai willtai merged commit 7b6f4ef into main Dec 4, 2024
8 checks passed
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