From cd743b7800481d6607222d1d21ab50afb58747ee Mon Sep 17 00:00:00 2001 From: erick Date: Sun, 06 Dec 2009 21:17:34 +0000 Subject: Fix for filtertests due to interface change in installhandlers --- (limited to 'tests/probetests.py') 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): -- cgit v0.9.1