mailr13816 - /branches/gui_testing/test_suite/gui_tests/state.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 21, 2011 - 19:26:
Author: bugman
Date: Thu Jul 21 19:26:22 2011
New Revision: 13816

URL: http://svn.gna.org/viewcvs/relax?rev=13816&view=rev
Log:
The test_load_state_no_gui() GUI test is now more advanced, using the pipe 
editor to associate a tab.


Modified:
    branches/gui_testing/test_suite/gui_tests/state.py

Modified: branches/gui_testing/test_suite/gui_tests/state.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/test_suite/gui_tests/state.py?rev=13816&r1=13815&r2=13816&view=diff
==============================================================================
--- branches/gui_testing/test_suite/gui_tests/state.py (original)
+++ branches/gui_testing/test_suite/gui_tests/state.py Thu Jul 21 19:26:22 
2011
@@ -47,6 +47,15 @@
         file = status.install_path + sep + 'test_suite' + sep + 
'shared_data' + sep + 'model_free' + sep + 'OMP' + sep + 
'final_results_trunc_1.3'
         self.gui.state_load(file_name=file)
 
+        # Show the pipe editor.
+        self.gui.show_pipe_editor(None)
+
+        # The menu (this is used to set the selected pipe).
+        self.gui.pipe_editor.menu(Fake_grid_cell_right_click())
+
+        # Associated an auto-analysis with the data pipe.
+        self.gui.pipe_editor.associate_auto(None)
+
         # The index.
         index = 0
 
@@ -61,3 +70,14 @@
         self.assert_(hasattr(ds, 'relax_gui'))
         self.assertEqual(ds.relax_gui.analyses[index].analysis_name, 
'Model-free')
         self.assertEqual(ds.relax_gui.analyses[index].pipe_name, 'a')
+
+
+
+class Fake_grid_cell_right_click:
+    """Simulate a grid_cell_right_click event ."""
+
+    def GetRow(self):
+        """Overwrite the GetRow() method."""
+
+        # Return the first row.
+        return 0




Related Messages


Powered by MHonArc, Updated Thu Jul 21 20:00:02 2011