Author: bugman Date: Tue Oct 7 17:45:07 2014 New Revision: 26194 URL: http://svn.gna.org/viewcvs/relax?rev=26194&view=rev Log: Fix for the Test_value.test_value_set_r1_rit test of the _pipe_control.test_value unit test module. This is a general fix for all unit test modules which use the test_suite.unit_tests.value_testing_base.Value_testing_base base class. After the molecules, residues and spins are manually created, the pipe_control.mol_res_spin.metadata_update() function is called to make sure that all of the private and volatile metadata have been correctly created, so that the other pipe_control.mol_res_spin module functions can operate correctly. Modified: trunk/test_suite/unit_tests/value_testing_base.py Modified: trunk/test_suite/unit_tests/value_testing_base.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/value_testing_base.py?rev=26194&r1=26193&r2=26194&view=diff ============================================================================== --- trunk/test_suite/unit_tests/value_testing_base.py (original) +++ trunk/test_suite/unit_tests/value_testing_base.py Tue Oct 7 17:45:07 2014 @@ -25,7 +25,7 @@ # relax module imports. from data_store import Relax_data_store; ds = Relax_data_store() -from pipe_control import diffusion_tensor, pipes +from pipe_control import diffusion_tensor, pipes, mol_res_spin from lib.errors import RelaxError, RelaxParamSetError, RelaxUnknownParamCombError from test_suite.unit_tests.base_classes import UnitTestCase @@ -98,6 +98,9 @@ pipe.mol[0].res[1].spin[0].num = 112 pipe.mol[0].res[1].spin[0].name = 'NH' + # Update the metadata so that the other pipe_control.mol_res_spin module functions can operate correctly. + mol_res_spin.metadata_update(pipe=pipe_name) +