3
from gi.repository import Gtk, GdkPixbuf, GObject
10
sys.path.insert(0,"..")
12
# ensure datadir is pointing to the right place
13
import softwarecenter.paths
14
softwarecenter.paths.datadir = os.path.join(
15
os.path.dirname(__file__), "..", "..", 'data')
17
# window destory timeout
20
class TestDialogs(unittest.TestCase):
21
""" basic tests for the various gtk3 dialogs """
23
def test_dependency_dialogs(self):
24
from softwarecenter.ui.gtk3.dialogs.dependency_dialogs import get_test_dialog
25
dia = get_test_dialog()
26
GObject.timeout_add(TIMEOUT,
27
lambda: dia.response(Gtk.ResponseType.ACCEPT))
31
if __name__ == "__main__":
33
logging.basicConfig(level=logging.DEBUG)