

def setUp(self):
    super(JSONAppTestCase, self).setUp()
    self.app.config['MONGODB_DB'] = 'testing'
    self.app.config['TESTING'] = True
    self.app.json_encoder = DummyEncoder
    db = MongoEngine()
    db.init_app(self.app)
    self.db = db

dataset/ETHPy150Open MongoEngine/flask-mongoengine/tests/test_json.py JSONAppTestCase.setUp/original