-
Notifications
You must be signed in to change notification settings - Fork 254
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
Tests fail when mongomock is installed #420
Comments
@mgorny Please specify flask-mongoengine version. New version just deployed to pip several hours ago, please test it. |
Reproduced with 0.9.5, 1.0.0 and git master (e090909). You should be able to reproduce it easily by adding diff --git a/tox.ini b/tox.ini
index 7216f15..0569904 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,6 +6,7 @@ commands =
python -m pytest {posargs}
deps =
PyMongo>3.9.0
+ mongomock
pytest
pytest-cov
|
I've applied the changes from #429, and the tests still fail, with the same message. |
@mgorny thanks for info. I will try to find some time to look at mongomock, but no schedule promises |
@mgorny ok, since almost 2 years from issue I have some time to back to this project. |
@mgorny I made a special mark for mongomock related tests, as mentioned 3 tests had assertion that mongomock is not installed. So we will just skip them in systems, where mongomock installed. As our CI/CD work with real mongo, as well as our new nox configuration. |
When mongomock is installed in the environment, flask-mongoengine fails three tests:
The text was updated successfully, but these errors were encountered: