Hi Michael, I'm sorry for the delay on this one! Ok, I just tried it and I'm still getting an error in the test. It seems that SoftwareCenterDataProvider's __init__ doesn't like the Mock self.IDLE_CHECK_INTERVAL being passed into the GObject.timeout_add_seconds() that happens in test_idle_timeout:
======================================================================
ERROR: test_idle_timeout (__main__.IdleTimeoutTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_dataprovider.py", line 195, in test_idle_timeout
self.bus_name, main_loop=self.loop)
File "/home/tremolux/Projects/quantal/software-center_review_mvo_dbus_idle_timeout/dbus-idle-timeout/softwarecenter/db/dataprovider.py", line 89, in __init__
self.IDLE_CHECK_INTERVAL, self._check_inactivity)
TypeError: an integer is required
----------------------------------------------------------------------
Ran 15 tests in 8.076s
Hi Michael, I'm sorry for the delay on this one! Ok, I just tried it and I'm still getting an error in the test. It seems that SoftwareCenterD ataProvider' s __init__ doesn't like the Mock self.IDLE_ CHECK_INTERVAL being passed into the GObject. timeout_ add_seconds( ) that happens in test_idle_timeout:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= _.IdleTimeoutTe stCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- test_dataprovid er.py", line 195, in test_idle_timeout self.loop) tremolux/ Projects/ quantal/ software- center_ review_ mvo_dbus_ idle_timeout/ dbus-idle- timeout/ softwarecenter/ db/dataprovider .py", line 89, in __init__ IDLE_CHECK_ INTERVAL, self._check_ inactivity)
ERROR: test_idle_timeout (__main_
-------
Traceback (most recent call last):
File "tests/
self.bus_name, main_loop=
File "/home/
self.
TypeError: an integer is required
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 15 tests in 8.076s
FAILED (errors=1)