[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 6.0-77-gfeebe33
Sandro Tosi
morph at debian.org
Sat Nov 5 16:35:13 UTC 2011
The following commit has been merged in the master branch:
commit f7bd274a54212d6f1697db83bdd7d92fbf8e2af9
Author: Sandro Tosi <morph at debian.org>
Date: Sat Nov 5 17:11:35 2011 +0100
move tests from GTK+ UI module to the its test file (commented, they are there just as reference)
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 66f0c8c..70f8b92 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -1544,18 +1544,3 @@ Falling back to 'text' interface."""
def can_input ():
return True
-
-def test ():
- # Write some tests here
- print get_password ("test")
- print select_options ('test', 'A', {'a': 'A test'})
- print get_multiline ('ENTER', empty_ok=True)
- print get_string ("test")
- print system ("yes")
- page = HandleBTSQueryPage (assistant)
- application.run_once_in_main_thread (page.execute_operation, [('test', (Bug ('#123 [test] [we] we we Reported by: test;' ), Bug ('#123 [test] [we] we we Reported by: test;')))], 'test')
- return application.get_last_value ()
-
-if __name__ == '__main__':
- initialize ()
- test ()
diff --git a/test/test_ui_gtk2.py b/test/test_ui_gtk2.py
index 5a59f7e..8649b51 100644
--- a/test/test_ui_gtk2.py
+++ b/test/test_ui_gtk2.py
@@ -27,3 +27,18 @@ class TestUIGTK2(unittest2.TestCase):
for item in gtk_bug:
self.assertIsNotNone(item)
+
+# These tests were written in the main module,
+# moved here to see if they can be interested somehow,
+# but to use them, we'd need to find a way to interact
+# programmatically with the GTK+ widgets
+#def test ():
+# # Write some tests here
+# print get_password ("test")
+# print select_options ('test', 'A', {'a': 'A test'})
+# print get_multiline ('ENTER', empty_ok=True)
+# print get_string ("test")
+# print system ("yes")
+# page = HandleBTSQueryPage (assistant)
+# application.run_once_in_main_thread (page.execute_operation, [('test', (Bug ('#123 [test] [we] we we Reported by: test;' ), Bug ('#123 [test] [we] we we Reported by: test;')))], 'test')
+# return application.get_last_value ()
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list