Changeset 7fb471d in sasview for src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
- Timestamp:
- Nov 9, 2017 6:41:56 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 4992ff2
- Parents:
- cee5c78
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/27/17 06:49:35)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 06:41:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
- Property mode changed from 100644 to 100755
r749b715 r7fb471d 6 6 from PyQt4 import QtCore 7 7 from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas 8 from mock import MagicMock9 from mock import patch8 from unittest.mock import MagicMock 9 from unittest.mock import patch 10 10 11 11 ####### TEMP … … 257 257 258 258 # Just this one plot 259 self.assertEqual(len( self.plotter.plot_dict.keys()), 1)259 self.assertEqual(len(list(self.plotter.plot_dict.keys())), 1) 260 260 self.plotter.onLinearFit(1) 261 261 … … 281 281 282 282 # Assure we have two sets 283 self.assertEqual(len( self.plotter.plot_dict.keys()), 2)283 self.assertEqual(len(list(self.plotter.plot_dict.keys())), 2) 284 284 285 285 # Delete one set 286 286 self.plotter.onRemovePlot(2) 287 287 # Assure we have two sets 288 self.assertEqual(len( self.plotter.plot_dict.keys()), 1)288 self.assertEqual(len(list(self.plotter.plot_dict.keys())), 1) 289 289 290 290 self.plotter.manager = MagicMock() … … 293 293 self.plotter.onRemovePlot(1) 294 294 # Assure we have no plots 295 self.assertEqual(len( self.plotter.plot_dict.keys()), 0)295 self.assertEqual(len(list(self.plotter.plot_dict.keys())), 0) 296 296 # Assure the plotter window is closed 297 297 self.assertFalse(self.plotter.isVisible())
Note: See TracChangeset
for help on using the changeset viewer.