Skip to content

Commit d32c90a

Browse files
author
Len Buckens
committed
attempt to fix failing test
1 parent b81aaea commit d32c90a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_json_app.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,14 @@ def test_connection_kwargs(self):
7575
self.assertFalse(db.connection.tz_aware)
7676

7777
def test_connection_kwargs_with_false_values(self):
78-
app = flask.Flask(__name__)
79-
app.config['MONGODB_SETTINGS'] = {
78+
self.app.config['MONGODB_SETTINGS'] = {
8079
'DB': 'testing',
8180
'alias': 'test',
8281
'use_greenlets': False
8382
}
84-
app.config['TESTING'] = True
83+
self.app.config['TESTING'] = True
8584
db = MongoEngine()
86-
db.init_app(app)
85+
db.init_app(self.app)
8786
self.assertFalse(db.connection.use_greenlets)
8887

8988
def test_with_id(self):

0 commit comments

Comments
 (0)