Author: tlinnet Date: Sun Nov 22 18:02:17 2015 New Revision: 28089 URL: http://svn.gna.org/viewcvs/relax?rev=28089&view=rev Log: Added GUI test: relax --gui-tests Relax_disp.test_paul_schanda_nov_2015 --time -d
This will show that loading a state will create a problem. Traceback (most recent call last): File "/Users/tlinnet/software/relax_trunk/test_suite/gui_tests/relax_disp.py", line 445, in test_paul_schanda_nov_2015 self.app.gui.state_load(file_name=state_file) File "/Users/tlinnet/software/relax_trunk/gui/relax_gui.py", line 841, in state_load self.sync_ds(upload=False) File "/Users/tlinnet/software/relax_trunk/gui/relax_gui.py", line 893, in sync_ds page.sync_ds(upload) File "/Users/tlinnet/software/relax_trunk/gui/analyses/auto_relax_disp.py", line 646, in sync_ds self.grid_inc.SetValue(int(self.data.grid_inc)) TypeError: int() argument must be a string or a number, not 'NoneType' Modified: trunk/test_suite/gui_tests/relax_disp.py Modified: trunk/test_suite/gui_tests/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/relax_disp.py?rev=28089&r1=28088&r2=28089&view=diff ============================================================================== --- trunk/test_suite/gui_tests/relax_disp.py (original) +++ trunk/test_suite/gui_tests/relax_disp.py Sun Nov 22 18:02:17 2015 @@ -414,6 +414,37 @@ self.assertEqual(self.app.gui.controller.main_gauge.GetValue(), 100) + def test_paul_schanda_nov_2015(self): + """This test truncated private data which was provided by Paul Schanda. This systemtest uncovers some unfortunate problems when + running an analysis and reading points by the R2eff method. + """ + + # Data path. + data_path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'dispersion'+sep+'Paul_Schanda_2015_Nov' + file_1 = data_path + sep + '1_prepare_data.py' + file_2 = data_path + sep + '2_load_data_GUI.py' + + ## Store the out + outdir = ds.tmpdir + status.outdir = outdir + + # Simulate the dispersion analysis wizard. + analysis = self.new_analysis_wizard(analysis_type='disp') + + ## Run script to make data. + self._execute_uf(uf_name='script', file=file_1, dir=None) + + ## Run script to make setup of data data. + self._execute_uf(uf_name='script', file=file_2, dir=None) + + # Change the results directory. + analysis.field_results_dir.SetValue(str_to_gui(outdir)) + + # Now load the state + state_file = outdir + sep + "temp_state.bz2" + self.app.gui.state_load(file_name=state_file) + + def test_read_spins_from_spectrum(self): """Test the GUI load spins from a spectrum formatted file.""" _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits