add optional interval argument to start function of Timer stubs

Fixes failing tests for completer
This commit is contained in:
Joakim Reinert 2017-10-09 16:23:45 +02:00
parent 0226025308
commit 7c584e7b6c

View File

@ -377,7 +377,9 @@ class FakeTimer(QObject):
def isSingleShot(self):
return self._singleshot
def start(self):
def start(self, interval=None):
if interval:
self._interval = interval
self._started = True
def stop(self):
@ -396,7 +398,7 @@ class InstaTimer(QObject):
timeout = pyqtSignal()
def start(self):
def start(self, interval=None):
self.timeout.emit()
def setSingleShot(self, yes):