Beispiel #1
0
 def setUp(self):
   self.app_ctx = app.app_context()
   self.app_ctx.push()
   db.create_all()
   m1 = SQLAlchemyHandler.model(feature='active', is_active=True)
   m2 = SQLAlchemyHandler.model(feature='inactive')
   db.session.add_all([m1, m2])
   db.session.commit()
 def setUp(self):
   self.app_ctx = app.app_context()
   self.app_ctx.push()
   app.config["FEATURE_FLAGS_ACTIVE"] = True
   app.config["FEATURE_FLAGS_INACTIVE"] = False