Skip to content

Commit

Permalink
Merge pull request #2325 from cjmayo/pymongo37
Browse files Browse the repository at this point in the history
Fix pymongo test count deprecation warning
  • Loading branch information
mrjoes committed Jan 31, 2023
2 parents d98dc39 + ed1de08 commit c212344
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
--health-timeout 5s
--health-retries 5
mongo:
image: mongo:5.0.4-focal
image: mongo:5.0.14-focal
ports:
- 27017:27017
azurite:
Expand Down
2 changes: 1 addition & 1 deletion flask_admin/tests/pymongo/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ def test_model():
url = '/admin/testview/delete/?id=%s' % model['_id']
rv = client.post(url)
assert rv.status_code == 302
assert db.test.count() == 0
assert db.test.estimated_document_count() == 0
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Flask-SQLAlchemy<3.0.0
peewee
wtf-peewee
mongoengine<=0.21.0
pymongo
pymongo>=3.7.0
flask-mongoengine==0.8.2
pillow>=3.3.2
Babel<=2.9.1
Expand Down

0 comments on commit c212344

Please sign in to comment.