Skip to content

Fix test and mongomock #304

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 5 commits into from
May 14, 2017

Conversation

touilleMan
Copy link
Member

This PR include #303 (it takes it as a starting point).

It fix the support of mongomock (you can either pass a MONGODB_USE_MOCK=True flag in flask's config or use the mongomock:// prefix in the host)

It fix the unittests that where silently failing: MongoEngine keep a global state of the connection but this wasn't clean before each test, hence some of them were using an old connection state which...

@lafrech I don't have commit right to this repo, can you review, merge&release for me ? ;-)

@lafrech
Copy link
Member

lafrech commented Mar 14, 2017

@lafrech I don't have commit right to this repo

Now, you do!

can you review, merge&release for me ? ;-)

I'm sorry, I can't do that right now. I'm gonna trust you and @wojcikstefan.

@touilleMan touilleMan merged commit 7d47a71 into MongoEngine:master May 14, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants