Hi Jimmy,

I have just realised that you have run the test-suite within the GUI!
As I mentioned to Seb
(https://mail.gna.org/public/relax-users/2012-04/msg00066.html), the
GUI tests were never meant to be run within the GUI as these tests are
extremely damaging to the GUI state.  I will try to either come up
with some black magic to allow these tests to run without destroying
the GUI, or turn them off completely.  Note that if you run the test
suite on the command line:

$ relax --test-suite

you will probably see that all the tests, including the GUI tests,
will pass.  Next time it would be appreciated if you could report a
little bit more information as to what you have done so that you don't
leave me guessing.

Regards,

Edward



On 18 April 2012 09:51, James Nyirenda <[email protected]> wrote:
> Hi Edward,
> I bet after uninstalling python2.6 and installing 2.7 with the current relax
> program, iam a step forward except when i run the test-suite, i get the
> following
>
>
>
> #############################
> # System / functional tests #
> #############################
>
>
> .........................................................................................................................................................................................................................................
> ----------------------------------------------------------------------
> Ran 233 tests in 255.704s
>
> OK
>
>
>
>
> ##############
> # Unit tests #
> ##############
>
>
> .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
> .........................................................................................................................................................................................................................................................................................................
> ----------------------------------------------------------------------
> Ran 1232 tests in 14.613s
>
> OK
>
>
>
>
> #############
> # GUI tests #
> #############
>
>
> EEEFRelaxError: The data pipe name argument 'None' must be a string.
>
> RelaxError: The data pipe name argument 'None' must be a string.
>
> RelaxError: The data pipe name argument 'None' must be a string.
>
> RelaxError: The data pipe name argument 'None' must be a string.
>
>
> ======================================================================
> ERROR: test_mf_auto_analysis (test_suite.gui_tests.model_free.Mf)
> Test the model-free auto-analysis.
> ----------------------------------------------------------------------
>
> relax> pipe.create(pipe_name='mf (Wed Apr 18 16:46:10 2012)',
> pipe_type='mf')
> Traceback (most recent call last):
>   File "C:\Program Files\relax-1.3.14\test_suite\gui_tests\model_free.py",
> line 61, in test_mf_auto_analysis
>     self.app.gui.analysis.new_analysis(analysis_type=analysis_type,
> analysis_name=analysis_name, pipe_name=pipe_name)
>   File "C:\Program Files\relax-1.3.14\gui\analyses\__init__.py", line 408,
> in new_analysis
>     analysis = classes[analysis_type](parent=self.notebook, id=-1,
> gui=self.gui, analysis_name=analysis_name, pipe_name=pipe_name,
> data_index=index)
>   File "C:\Program Files\relax-1.3.14\gui\analyses\auto_model_free.py", line
> 177, in __init__
>     data_index = ds.relax_gui.analyses.add('model-free')
> AttributeError: 'Relax_data_store' object has no attribute 'relax_gui'
>
> ======================================================================
> ERROR: test_noe_analysis (test_suite.gui_tests.noe.Noe)
> Test the NOE analysis.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Program Files\relax-1.3.14\test_suite\gui_tests\noe.py", line 64,
> in test_noe_analysis
>     self.app.gui.analysis.new_analysis(analysis_type=analysis_type,
> analysis_name=analysis_name, pipe_name=pipe_name)
>   File "C:\Program Files\relax-1.3.14\gui\analyses\__init__.py", line 408,
> in new_analysis
>     analysis = classes[analysis_type](parent=self.notebook, id=-1,
> gui=self.gui, analysis_name=analysis_name, pipe_name=pipe_name,
> data_index=index)
>   File "C:\Program Files\relax-1.3.14\gui\analyses\auto_noe.py", line 104,
> in __init__
>     data_index = ds.relax_gui.analyses.add('NOE')
> AttributeError: 'Relax_data_store' object has no attribute 'relax_gui'
>
> ======================================================================
> ERROR: test_r1_analysis (test_suite.gui_tests.rx.Rx)
> Test the r1 analysis.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Program Files\relax-1.3.14\test_suite\gui_tests\rx.py", line 103,
> in test_r1_analysis
>     self.app.gui.analysis.new_analysis(analysis_type=analysis_type,
> analysis_name=analysis_name, pipe_name=pipe_name)
>   File "C:\Program Files\relax-1.3.14\gui\analyses\__init__.py", line 408,
> in new_analysis
>     analysis = classes[analysis_type](parent=self.notebook, id=-1,
> gui=self.gui, analysis_name=analysis_name, pipe_name=pipe_name,
> data_index=index)
>   File "C:\Program Files\relax-1.3.14\gui\analyses\auto_rx_base.py", line
> 103, in __init__
>     data_index = ds.relax_gui.analyses.add(self.label)
> AttributeError: 'Relax_data_store' object has no attribute 'relax_gui'
>
> ======================================================================
> FAIL: test_load_state_no_gui (test_suite.gui_tests.state.State)
> Test the loading of a relax save state with no GUI data.
> ----------------------------------------------------------------------
> RelaxError: The data pipe name argument 'None' must be a string.
>
> Traceback (most recent call last):
>   File "C:\Program Files\relax-1.3.14\test_suite\gui_tests\state.py", line
> 72, in test_load_state_no_gui
>     self.assertEqual(ds.relax_gui.analyses[index].pipe_name, 'a')
> AssertionError: None != 'a'
>
> ----------------------------------------------------------------------
> Ran 4 tests in 4.233s
>
> FAILED (failures=1, errors=3)
>
>
>
>
> ###################################
> # Summary of the relax test suite #
> ###################################
>
>
> # Optional packages/modules
> ###########################
>
> No tests skipped due to missing modules.
>
> # Synopsis
> ##########
>
> System/functional tests ......................................... [ OK ]
> Unit tests ...................................................... [ OK ]
> GUI tests ....................................................... [ Failed ]
> Synopsis ........................................................ [ Failed ]
>
>
> Regards
> Jimmy
>
> _______________________________________________
> relax (http://www.nmr-relax.com)
>
> This is the relax-users mailing list
> [email protected]
>
> 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-users
>

_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-users mailing list
[email protected]

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-users

Reply via email to