Exemple #1
0
    def setUp(self):
        DatabaseManager.connect()
        DatabaseManager.reset()

        app.test_client_class = BearerAuthTestClient
        self.app = app.test_client()
        self.setup_prerequisite()
Exemple #2
0
    def setUp(self):
        self.bot = None
        self.user = None
        self.send_message_mock = mock.patch(
            'bb8.backend.messaging.send_message').start()

        DatabaseManager.connect()
    def setUp(self):
        self._process = None
        self._service = MessagingService()

        DatabaseManager.connect()
        self.setup_prerequisite()
        self.start_service()
Exemple #4
0
    def setUp(self):
        app.config['TESTING'] = True

        DatabaseManager.connect()
        DatabaseManager.reset()

        app.test_client_class = BearerAuthTestClient
        self.app = app.test_client()
        self.bot_ids = []
        self.broadcast_ids = []
        self.setup_prerequisite()
Exemple #5
0
def before_request():
    """Make sure we are connected to the database each request."""
    DatabaseManager.connect()
Exemple #6
0
 def setUp(self):
     DatabaseManager.connect()
     DatabaseManager.reset()
Exemple #7
0
 def setUp(self):
     DatabaseManager.connect()
     self.setup_prerequisite()
Exemple #8
0
 def setUp(self):
     DatabaseManager.connect()
     self.account = None
     self.bot = None
     self.setup_prerequisite()