def setup(self):
    (self.process, self.url, self.app, _, self.cm, self.fm) = mscolab_start_server(PORTS)
    QtTest.QTest.qWait(500)
    self.application = QtWidgets.QApplication(sys.argv)
    self.window = MSSMscolabWindow(data_dir=mscolab_settings.MSCOLAB_DATA_DIR, mscolab_server_url=self.url)
    self.window.show()
    self._connect_to_mscolab()
    self._login()
    self._activate_project_at_index(0)
    QtTest.QTest.mouseClick(self.window.chatWindowBtn, QtCore.Qt.LeftButton)
    QtWidgets.QApplication.processEvents()
    self.chat_window = self.window.chat_window
    QtTest.QTest.qWaitForWindowExposed(self.window)
    QtWidgets.QApplication.processEvents()
def setup(self):
    (self.process, self.url, self.app, _, self.cm, self.fm) = mscolab_start_server(PORTS)
    QtTest.QTest.qWait(500)
    self.application = QtWidgets.QApplication(sys.argv)
    self.window = MSSMscolabWindow(data_dir=mscolab_settings.MSCOLAB_DATA_DIR, mscolab_server_url=self.url)
    self.window.show()
    self._connect_to_mscolab()
    self._login()
    self._activate_project_at_index(0)
    QtTest.QTest.mouseClick(self.window.chatWindowBtn, QtCore.Qt.LeftButton)
    QtWidgets.QApplication.processEvents()
    self.chat_window = self.window.chat_window
    QtTest.QTest.qWaitForWindowExposed(self.window)
    QtWidgets.QApplication.processEvents()