@nottest
def parse_tests(tool, tests_source):
 default_interactor = os.environ.get('GALAXY_TEST_DEFAULT_INTERACTOR', DEFAULT_INTERACTOR)
 tests_dict = tests_source.parse_tests_to_dict()
 tests_default_interactor = tests_dict.get('interactor', default_interactor)
 tests = []
 for (i, test_dict) in enumerate(tests_dict.get('tests', [])):
  test = ToolTestBuilder(tool, test_dict, i, default_interactor=tests_default_interactor)
  tests.append(test)
 return tests

@ nottest def parse_tests ( tool , tests_source ) : default_interactor = os . environ . get ( 'GALAXY_TEST_DEFAULT_INTERACTOR' , DEFAULT_INTERACTOR ) tests_dict = tests_source . parse_tests_to_dict ( ) tests_default_interactor = tests_dict . get ( 'interactor' , default_interactor ) tests = [ ] for ( i , test_dict ) in enumerate ( tests_dict . get ( 'tests' , [ ] ) ) : test = ToolTestBuilder ( tool , test_dict , i , default_interactor = tests_default_interactor ) tests . append ( test ) return tests
build tooltestbuilder objects for each "<test>" elements and return default interactor .