Esempio n. 1
0
    def setUp(self):
        DatabaseManager.connect()
        DatabaseManager.reset()

        app.test_client_class = BearerAuthTestClient
        self.app = app.test_client()
        self.setup_prerequisite()
Esempio n. 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()
Esempio n. 3
0
    def setUp(self):
        self._process = None
        self._service = MessagingService()

        DatabaseManager.connect()
        self.setup_prerequisite()
        self.start_service()
Esempio n. 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()
Esempio n. 5
0
def before_request():
    """Make sure we are connected to the database each request."""
    DatabaseManager.connect()
Esempio n. 6
0
 def setUp(self):
     DatabaseManager.connect()
     DatabaseManager.reset()
Esempio n. 7
0
 def setUp(self):
     DatabaseManager.connect()
     self.setup_prerequisite()
Esempio n. 8
0
 def setUp(self):
     DatabaseManager.connect()
     self.account = None
     self.bot = None
     self.setup_prerequisite()