Skip to content

Commit

Permalink
pin pymongo, revert other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-probert committed Oct 26, 2024
1 parent fe08ef3 commit 48a9f4e
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 67 deletions.
121 changes: 56 additions & 65 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repository = "https://github.com/imaginate-ai/imaginate-api"
[tool.poetry.dependencies]
python = "^3.12"
Flask = "^2.0"
pymongo = "^4.0"
pymongo = "<4.9.0"
python-dotenv = "^0.21"
image-handler-client = {git = "https://github.com/imaginate-ai/image-handler-client.git", rev = "v1.0.0"}
requests = "^2.32.3"
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
# Mocking
from unittest.mock import patch, MagicMock
import mongomock # NOTE: mongomock doesn't work well with sorting
mongomock.gridfs.enable_gridfs_integration()

# A struct class to convert a dictionary to a object
# This is useful since MongoDB uses attributes and does not support dictionary keys
Expand Down

0 comments on commit 48a9f4e

Please sign in to comment.