1311 @param text the text to be completed (string) |
1311 @param text the text to be completed (string) |
1312 """ |
1312 """ |
1313 self.debuggerInterface.remoteCompletion(text) |
1313 self.debuggerInterface.remoteCompletion(text) |
1314 |
1314 |
1315 def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase, |
1315 def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase, |
1316 clientType="", forProject=False, venvName=""): |
1316 clientType="", forProject=False, venvName="", |
|
1317 syspath=None): |
1317 """ |
1318 """ |
1318 Public method to prepare a new unittest run. |
1319 Public method to prepare a new unittest run. |
1319 |
1320 |
1320 @param fn the filename to load |
1321 @param fn the filename to load |
1321 @type str |
1322 @type str |
1336 @type str |
1337 @type str |
1337 @param forProject flag indicating a project related action |
1338 @param forProject flag indicating a project related action |
1338 @type bool |
1339 @type bool |
1339 @param venvName name of a virtual environment |
1340 @param venvName name of a virtual environment |
1340 @type str |
1341 @type str |
1341 """ |
1342 @param syspath list of directories to be added to sys.path on the |
1342 if clientType not in self.getSupportedLanguages(): |
1343 remote side |
|
1344 @type list of str |
|
1345 """ |
|
1346 if clientType and clientType not in self.getSupportedLanguages(): |
1343 # a not supported client language was requested |
1347 # a not supported client language was requested |
1344 E5MessageBox.critical( |
1348 E5MessageBox.critical( |
1345 None, |
1349 None, |
1346 self.tr("Start Debugger"), |
1350 self.tr("Start Debugger"), |
1347 self.tr( |
1351 self.tr( |
1360 except KeyError: |
1364 except KeyError: |
1361 self.__setClientType('Python3') # assume it is a Python3 file |
1365 self.__setClientType('Python3') # assume it is a Python3 file |
1362 self.startClient(False, forProject=forProject, venvName=venvName) |
1366 self.startClient(False, forProject=forProject, venvName=venvName) |
1363 |
1367 |
1364 self.debuggerInterface.remoteUTPrepare( |
1368 self.debuggerInterface.remoteUTPrepare( |
1365 fn, tn, tfn, failed, cov, covname, coverase) |
1369 fn, tn, tfn, failed, cov, covname, coverase, syspath) |
1366 self.debugging = False |
1370 self.debugging = False |
1367 self.running = True |
1371 self.running = True |
1368 |
1372 |
1369 def remoteUTRun(self): |
1373 def remoteUTRun(self): |
1370 """ |
1374 """ |