We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b81aaea commit d32c90aCopy full SHA for d32c90a
tests/test_json_app.py
@@ -75,15 +75,14 @@ def test_connection_kwargs(self):
75
self.assertFalse(db.connection.tz_aware)
76
77
def test_connection_kwargs_with_false_values(self):
78
- app = flask.Flask(__name__)
79
- app.config['MONGODB_SETTINGS'] = {
+ self.app.config['MONGODB_SETTINGS'] = {
80
'DB': 'testing',
81
'alias': 'test',
82
'use_greenlets': False
83
}
84
- app.config['TESTING'] = True
+ self.app.config['TESTING'] = True
85
db = MongoEngine()
86
- db.init_app(app)
+ db.init_app(self.app)
87
self.assertFalse(db.connection.use_greenlets)
88
89
def test_with_id(self):
0 commit comments