~nataliabidart/software-center/the-organizer

« back to all changes in this revision

Viewing changes to tests/gtk3/test_dialogs.py

  • Committer: Natalia B. Bidart
  • Date: 2012-05-30 21:52:08 UTC
  • Revision ID: natalia.bidart@canonical.com-20120530215208-y1r3gpti2skr166e
- Got all tests passing but only ig each one is run on a different python
process.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
setup_test_env()
6
6
 
7
7
import softwarecenter.ui.gtk3.dialogs
8
 
from tests.gtk3.windows import get_dependency_test_dialog
 
8
from tests.gtk3.windows import get_test_window_dependency_dialog
9
9
 
10
10
# window destory timeout
11
11
TIMEOUT=200
14
14
class TestDialogs(unittest.TestCase):
15
15
    """ basic tests for the various gtk3 dialogs """
16
16
 
17
 
    def test_dependency_dialogs(self):
18
 
        dia = get_dependency_test_dialog()
 
17
    def get_test_window_dependency_dialog(self):
 
18
        dia = get_test_window_dependency_dialog()
19
19
        GObject.timeout_add(TIMEOUT,
20
20
                            lambda: dia.response(Gtk.ResponseType.ACCEPT))
21
21
        dia.run()