Changeset 863ebca in sasview for src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
- Timestamp:
- Sep 20, 2018 7:16:26 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 8faac15
- Parents:
- bdfe0be
- git-author:
- Piotr Rozyczko <rozyczko@…> (09/20/18 07:14:40)
- git-committer:
- Piotr Rozyczko <piotrrozyczko@…> (09/20/18 07:16:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
r5b144c6 r863ebca 103 103 self.plotter.createContextMenuQuick() 104 104 actions = self.plotter.contextMenu.actions() 105 self.assertEqual(len(actions), 7)105 self.assertEqual(len(actions), 9) 106 106 107 107 # Trigger Print Image and make sure the method is called … … 115 115 116 116 # Trigger Toggle Grid and make sure the method is called 117 self.assertEqual(actions[ 4].text(), "Toggle Grid On/Off")117 self.assertEqual(actions[6].text(), "Toggle Grid On/Off") 118 118 self.plotter.ax.grid = MagicMock() 119 actions[ 4].trigger()119 actions[6].trigger() 120 120 self.assertTrue(self.plotter.ax.grid.called) 121 121 122 122 # Trigger Change Scale and make sure the method is called 123 self.assertEqual(actions[ 6].text(), "Change Scale")123 self.assertEqual(actions[8].text(), "Change Scale") 124 124 self.plotter.properties.exec_ = MagicMock(return_value=QtWidgets.QDialog.Rejected) 125 actions[ 6].trigger()125 actions[8].trigger() 126 126 self.assertTrue(self.plotter.properties.exec_.called) 127 127
Note: See TracChangeset
for help on using the changeset viewer.