Skip to content

Commit

Permalink
Merge pull request #6 from JonathanBrenner/master
Browse files Browse the repository at this point in the history
Fix incompatibility with PyMongo 4.0, typo pytest
  • Loading branch information
marirs authored May 7, 2023
2 parents 0e25575 + 184c654 commit 2e00f76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ versions.
Quart-Motor is tested against `supported versions
<https://www.mongodb.com/support-policy>`_ of MongoDB, 3.5+.

Quart-Motor works very well with
- `uvicorn` asgi
Quart-Motor works very well with
- `uvicorn` asgi
- `hypercorn` asgi

Quart-Motor is tested against `Python 3.7+` versions.
Expand Down Expand Up @@ -186,7 +186,7 @@ Changes:

Flask-PyMongo:

- <https://github.com/dcrosta/flask-pymongo>
- <https://github.com/dcrosta/flask-pymongo>


Contributors of Flask-PyMongo:
Expand Down
2 changes: 1 addition & 1 deletion quart_motor/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(
"MotorDatabase, not %r" % database
)

delegate = _delegate or Collection(
delegate = _delegate if _delegate is not None else Collection(
database.delegate,
name,
codec_options=codec_options,
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[tool:pytest]
adopts = --color=auto --cov=quart_motor --cov-report=xml:cov.xml --cov-report=term-missing
addopts = --color=auto --cov=quart_motor --cov-report=xml:cov.xml --cov-report=term-missing
testpaths = tests

0 comments on commit 2e00f76

Please sign in to comment.