Closed aequitas closed 10 years ago
Hello,
could you provide test, when eve-mongoengine is failing on this issue? I think that eve adds MONGO_USER
and MONGO_PASSWORD
with None
values by default.
Of course your patch makes sense, but I am just curious in which case it breaks.
I stumbled upon this while running tests for my app. Might be I am mocking out the part which sets the default settings. I will have a look at it and provide a test if needed.
I was mocking out to much :)
When MONGO_USERNAME or MONGO_PASSWORD is not supplied in the app config it breaks with an KeyError. This should prevent that.