diff options
author | erick <erick@sugar-dev-erick.(none)> | 2009-12-06 21:17:34 (GMT) |
---|---|---|
committer | erick <erick@sugar-dev-erick.(none)> | 2009-12-06 21:17:34 (GMT) |
commit | cd743b7800481d6607222d1d21ab50afb58747ee (patch) | |
tree | 69adedb1a6dad10b2daa0d6777f571114986432d /tests/probetests.py | |
parent | 2bda2c8c50797a6214126edc5afdc3fc5d8e9969 (diff) |
Fix for filtertests due to interface change in installhandlers
Diffstat (limited to 'tests/probetests.py')
-rw-r--r-- | tests/probetests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/probetests.py b/tests/probetests.py index f073135..99fbf4d 100644 --- a/tests/probetests.py +++ b/tests/probetests.py @@ -29,6 +29,7 @@ from sugar.tutorius.TProbe import TProbe, ProbeProxy, ProbeManager from sugar.tutorius import addon from sugar.tutorius.actions import Action from sugar.tutorius.properties import TIntProperty, TStringProperty +from sugar.tutorius.gtkutils import find_widget #Create a substitute addon create function @@ -72,6 +73,11 @@ class MockActivity(object): def get_id(self): return "unique_id_1" + +class MockProbe(object): + def find_widget(self, base, path, ignore_errors=True): + return find_widget(base,path,ignore_errors) + class MockProbeProxy(object): _MockProxyCache = {} def __new__(cls, activityName, unique_id): |