def setUp(self):
        self.app = Setup.create_app()
        with app.test_request_context():
            user = UserFactory()
            db.session.add(user)
            db.session.commit()

            event = EventFactoryBasic()
            event.user_id = user.id
            db.session.add(event)
            db.session.commit()

            # Authenticate User
            self.auth = {'Authorization': "JWT " + str(_default_jwt_encode_handler(user), 'utf-8')}
 def setUp(self):
     self.app = Setup.create_app()
 def setUp(self):
     self.app = Setup.create_app()
Example #4
0
 def setUpClass(cls) -> None:
     cls.app = Setup.create_app()
Example #5
0
 def setUp(self) -> None:
     self.app = Setup.create_app()