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

[FIX] Fixing unspected value returning in the test #228

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hyperon_das_atomdb/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ def commit(self, **kwargs) -> None:
This method is intended to be implemented by subclasses to handle the commit operation,
which may involve persisting changes to a storage backend or performing other necessary
actions to finalize the current state of the database.
Updates of atoms aren't allowed on the same transaction.

Args:
**kwargs: Additional keyword arguments that may be used by the implementation of the
Expand Down
1 change: 1 addition & 0 deletions tests/integration/adapters/test_redis_mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ def test_get_matched_with_pagination(self, _cleanup, _db: RedisMongoDB):
def test_create_field_index(self, _cleanup, _db: RedisMongoDB):
db = _db
self._add_atoms(db)
db.commit()
db.add_link(
{
"type": "Similarity",
Expand Down